예제 #1
0
				{                        
					//alert(index);
				});
			', CClientScript::POS_READY);
?>
	
<div class="head">
		<div class="container">
		<div class="lCol">
					<a href="/" class="logo" title="На главную"><img src="/images/logo.png"  alt="РосЯма" /></a>
			</div>
			<div class="rCol">
	<div class="h">
		<div class="info">
			<h1><span class="date">Сохраненный список ям от <?php 
echo CHtml::encode(Y::dateFromTimeShort($list->date_created));
?>
</span></h1>
			<p>Отдел ГИБДД: "<?php 
echo $list->gibdd->gibdd_name;
?>
"</p>
			<p><?php 
echo CHtml::link('изменить', '#', array('onclick' => '$("#change_gibdd").show("slow"); $(this).hide("slow"); return false;'));
?>
</p>
			<div id="change_gibdd" style="display:none;">
			<form method="post">
			<?php 
echo CHtml::DropDownList('gibdd_change_id', '', CHtml::listData(GibddHeads::model()->findAll(array('condition' => 't.subject_id=' . $list->gibdd->subject_id . ' AND t.id !=' . $list->gibdd->id, 'order' => 't.name')), 'id', 'gibdd_name'), array());
?>
예제 #2
0
    }
    ?>
<br/><?php 
    echo CHtml::link('Очистить список', '#', array('class' => 'clear_selected'));
    ?>
<br/><br/>
<?php 
}
if ($user->selected_holes_lists) {
    ?>
<h2>Сохраненные:</h2>
<?php 
    foreach ($user->selected_holes_lists as $list) {
        ?>
	<?php 
        echo Y::dateFromTimeShort($list->date_created);
        ?>
 <?php 
        echo CHtml::link('удалить', array('/profile/delHolesSelectList', 'id' => $list->id), array('class' => 'save_selected'));
        ?>
<br/>
	<?php 
        echo CHtml::link('показать список', array('/holes/selected', 'id' => $list->id));
        ?>
<br/>
	<?php 
        echo CHtml::link('Заявление', array('requestForm', 'id' => $list->gibdd_id, 'type' => 'gibdd', 'holes' => implode(',', CHtml::listData($list->holes, 'ID', 'ID'))), array('class' => 'show_form'));
        ?>
<br/>
	<?php 
        /* if ($list->notSentHoles) : ?>