forked from RosDostup/RosYama.2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request RosDostup#15 from Ahaenor/no_gibddfix_last
No gibddfix last
- Loading branch information
Showing
16 changed files
with
205 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,6 +78,7 @@ | |
// this is used in contact page | ||
'adminEmail'=>'[email protected]', | ||
'YMapKey'=>'AKtzDVABAAAAbnnpfAIAZPFgkjAuQV52QNsahNkE7plr4F0AAAAAAAAAAAAyrGSHDyaYbEfL1i8AVZDhjT4VHQ==', | ||
'copyright' => 'rosdostup', // For copyright meta in header | ||
'gibddOn' => false, // True, если ГИБДД участвует в форме дефекта; false, если она исключается из формы | ||
//'layout'=>'startpage', | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
Не исключена вероятность того, что на <a href="http://www.gosuslugi.ru/ru/chorg/index.php?ssid_4=4120&stab_4=4&rid=228&tid=2" target="_blank">сайте госуслуг</a> окажется немного полезной информации. | ||
|
||
<?php $form=$this->beginWidget('CActiveForm', array( | ||
'id'=>'request-form', | ||
'enableAjaxValidation'=>false, | ||
'action'=>Yii::app()->createUrl("holes/request", array("id"=>$hole->ID)), | ||
'htmlOptions'=>Array ('onsubmit'=>"document.getElementById('pdf_form').style.display='none';"), | ||
)); | ||
$usermodel=Yii::app()->user->userModel; | ||
$model=new HoleRequestForm; | ||
$model->to = empty($gibdd) ? '' : $gibdd->post_dative.' '.$gibdd->fio_dative; | ||
$model->from=$usermodel->relProfile->request_from ? $usermodel->relProfile->request_from : $usermodel->last_name.' '.$usermodel->name.' '.$usermodel->second_name; | ||
$model->address=CHtml::encode($hole->ADDRESS); | ||
$model->signature=$usermodel->relProfile->request_signature ? $usermodel->relProfile->request_signature : $usermodel->last_name.' '.substr($usermodel->name, 0, 2).($usermodel->name ? '.' : '').' '.substr($usermodel->second_name, 0, 2).($usermodel->second_name ? '.' : ''); | ||
$model->postaddress=$usermodel->relProfile->request_address ? $usermodel->relProfile->request_address : ''; | ||
?> | ||
<h2><?= Yii::t('holes_view', 'HOLE_REQUEST_FORM') ?></h2> | ||
<table> | ||
<tr> | ||
<th><?php echo $form->labelEx($model,'to'); ?><span class="comment"><?= Yii::t('holes_view', 'HOLE_REQUEST_FORM_TO_COMMENT') ?></span></th> | ||
<td><?php echo $form->textArea($model,'to',array('rows'=>3, 'cols'=>40)); ?></td> | ||
</tr> | ||
<tr> | ||
<th><?php echo $form->labelEx($model,'from'); ?><span class="comment"><?= Yii::t('holes_view', 'HOLE_REQUEST_FORM_FROM_COMMENT') ?></span></th> | ||
<td><?php echo $form->textArea($model,'from',array('rows'=>3, 'cols'=>40)); ?></td> | ||
</tr> | ||
<tr> | ||
<th><?php echo $form->labelEx($model,'postaddress'); ?><span class="comment"><?= Yii::t('holes_view', 'HOLE_REQUEST_FORM_POSTADDRESS_COMMENT') ?></span></th> | ||
<td><?php echo $form->textArea($model,'postaddress',array('rows'=>3, 'cols'=>40)); ?></td> | ||
</tr> | ||
<tr> | ||
<th><?php echo $form->labelEx($model,'address'); ?><span class="comment"><?= Yii::t('holes_view', 'HOLE_REQUEST_FORM_ADDRESS_COMMENT') ?></span></th> | ||
<td><?php echo $form->textArea($model,'address',array('rows'=>3, 'cols'=>40)); ?></td> | ||
</tr> | ||
<?php if($hole->type->alias == 'light'): ?> | ||
<tr> | ||
<th><?php echo $form->labelEx($model,'comment'); ?><span class="comment"><?= Yii::t('holes_view', 'HOLE_REQUEST_FORM_COMMENT_COMMENT') ?></span></th> | ||
<td><?php echo $form->textArea($model,'comment',array('rows'=>3, 'cols'=>40)); ?></td> | ||
</tr> | ||
<?php endif; ?> | ||
<?php if($hole->description_size || $hole->description_locality): ?> | ||
<tr> | ||
<th colspan="2"><?php echo $form->labelEx($model,'showDescriptions'); ?> <?php echo $form->checkBox($model,'showDescriptions',array('style'=>'width:20px')); ?><span class="comment"><?= Yii::t('holes_view', 'HOLE_REQUEST_FORM_SHOW_DESCRIPTIONS_COMMENT') ?></span></th> | ||
|
||
</tr> | ||
<?php endif; ?> | ||
<tr> | ||
<th><?php echo $form->labelEx($model,'signature'); ?><span class="comment"><?= Yii::t('holes_view', 'HOLE_REQUEST_FORM_SIGNATURE_COMMENT') ?></span></th> | ||
<td><?php echo $form->textField($model,'signature',array('class'=>'textInput')); ?></td> | ||
</tr> | ||
<tr> | ||
<th></th> | ||
<td> | ||
<?php echo CHtml::submitButton(Yii::t('holes_view', 'HOLE_REQUEST_FORM_SUBMIT'), Array('class'=>'submit', 'name'=>'HoleRequestForm[pdf]')); ?> | ||
<?php echo CHtml::submitButton(Yii::t('holes_view', 'HOLE_REQUEST_FORM_SUBMIT2'), Array('class'=>'submit', 'name'=>'HoleRequestForm[html]')); ?> | ||
</td> | ||
</tr> | ||
</table> | ||
<?php $this->endWidget(); ?> | ||
<?= Yii::t('holes_view', 'ST1234_INSTRUCTION') ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.