Ejemplo n.º 1
0
<?php
/* @var $this SegScheduledToursController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'Seg Scheduled Tours',
);

$this->menu=array(
	array('label'=>'Create SegScheduledTours', 'url'=>array('create')),
	array('label'=>'Manage SegScheduledTours', 'url'=>array('admin')),
);
?>

<h1>Seg Scheduled Tours for <?php echo $id; ?></h1>
<?php echo "ref:".chtml::link("there", array("city","id"=>"munchen")); ?>

<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
)); ?>
Ejemplo n.º 2
0
<div class="movie-item">
  <?php 
echo chtml::link(chtml::image($data->getcover(), $data->get('name'), array('class' => 'left')), array('movie/view', 'url_key' => $data->url_key));
?>
  <h3><?php 
echo $data->get('name');
?>
</h3>
  <?php 
echo $data->getReleaseYear();
?>
<br />
  <br />
  <ul>
    <li>Views: <?php 
echo $data->views;
?>
</li>
    <li>Comments: <?php 
echo count($data->comments);
?>
</li>
    <li>My Rating: <?php 
echo ($rate = $data->getMyRating()) ? $rate : 'unseen';
?>
</li>
  </ul>
</div>
Ejemplo n.º 3
0
</label>
            <?php 
if ($form->hasErrors('agreement')) {
    ?>
<span class="beta-help-inline"><?php 
    echo $form->getError('agreement');
    ?>
</span><?php 
}
?>
        </div>
        <div class="clear"></div>
    </div>
    <div class="action-buttons">
        <?php 
echo CHtml::submitButton(t('user_signup'), array('class' => 'beta-btn btn-primary', 'tabindex' => 6));
?>
    </div>
    <?php 
echo chtml::endForm();
?>
</div>
<div class="beta-sidebar">
    <p class="quick-login-signup"><?php 
echo t('quick_login_link', 'main', array('{sitename}' => app()->name, '{loginurl}' => url('site/login')));
?>
</p>
</div>
<div class="clear"></div>

Ejemplo n.º 4
0
							<?php
//								echo $form->labelEx($cash_model,'delta_cash'); 
								echo chtml::label("Geldbetrag*", "CashboxChangeRequests_delta_cash");
								echo $form->textField($cash_model,'delta_cash',array('style'=>'color:#000;'));
								echo $form->error($cash_model,'delta_cash'); 
								echo $form->hiddenField($cash_model,'id_users');
								?>
						</div>
						<div class="col-md-6">
						</div>
					</div>
					<div class="row">
						<div class="col-md-10">
						<?php 
//							echo $form->labelEx($cash_model,'reason');
							echo chtml::label("Informationen", "CashboxChangeRequests_reason");
							echo $form->textField($cash_model,'reason',array('size'=>60,'maxlength'=>255,'style'=>'color:#000;')); 
							echo $form->error($cash_model,'reason');
						?>
					</div>
					<div class="col-md-2">
					</div>
					</div>				 
				 </div>
			   </div>
			   <div class="modal-footer">
					<div class="row buttons">
						<button class="btn btn-success btn-outline btn-default" type="submit">Speichern</button>
						<button  type="button" class="btn  pull-right" data-dismiss="modal">Abbrechen</button>
					</div>
			   </div>
Ejemplo n.º 5
0
    echo $row->getAnotation(255);
    ?>
</div>
					<?php 
    if ($row->hasImage('preview')) {
        ?>
					</div><div class="clear"></div>
					<?php 
    }
    ?>
					<?php 
    $this->widget('NewsTags', array('news' => $row));
    ?>
					<div class="news_info">
						<?php 
    echo CHtml::link('Читать полностью', array('/news/item/show', 'url' => $block->url, 'id' => $row->id));
    ?>
						<?php 
    if ($block->allowComments) {
        echo chtml::link("Комментарии (" . count($row->comments) . ")", array('/news/item/show', 'url' => $block->url, 'id' => $row->id, '#' => 'news_comments'), array('class' => 'news_comments'));
    }
    ?>
					</div>
				</div>    
	        </div>
	    <?php 
}
?>
	</div>
</div>
Ejemplo n.º 6
0
			</div>
		</div>
            	 <div class="modal modal-success fade" id="guideModal" role="dialog">
		   <div class="modal-dialog modal-md">
 			 <div class="modal-content">
			   <div class="modal-header">
				 <button type="button" class="close" data-dismiss="modal" aria-label="close">
					 <span aria-hidden="true">&times;</span></button>
				 <h4 class="modal-title">Invoice info</h4>
			   </div>
			   <div class="modal-body">
 					<div class="row">
						<div class="col-md-10">
						<?php 
//							echo $form->labelEx($cash_model,'reason');
							echo chtml::label("Informationen", "SegGuidestourinvoices_info");
							echo $form->textArea($model,'info',array('size'=>60,'maxlength'=>128,'style'=>'color:#000;')); 
							echo $form->error($model,'info');
							echo $form->hiddenField($model,'idseg_guidesTourInvoices',array('value'=>'0'));
							echo $form->hiddenField($model,'cancel',array('value'=>'false'));
						?>
					</div>
					<div class="col-md-2">
					</div>
					</div>	                                
			   </div>
			   <div class="modal-footer">
                                        <button class="btn btn-success btn-outline btn-default" type="submit" onclick="js:jQuery('#SegGuidestourinvoices_cancel').val('true');">Speichern</button>
                                        <button  type="button" class="btn  pull-right" data-dismiss="modal" >Abbrechen</button>
                            </div>
			 </div>
Ejemplo n.º 7
0
			<div class="form-group">
			<?php
			echo $form->labelEx($model,'cancellationAnnotation');
			 echo $form->textArea($model,'cancellationAnnotation',array('size'=>60,'maxlength'=>1500)); 
			 echo $form->error($model,'cancellationAnnotation');
		   ?>
			</div>
		</div>
        <div class="col-md-4"></div>
	</div>
	<div class="row">
		<div class="col-md-2">
			<div class="form-group">
				<?php
//						echo $form->labelEx($model,'isCanceled');
				echo "<div>".chtml::label("Tour Storniert", "SegScheduledTours_isCanceled")."</div>";
//					echo "<div>".$form->labelEx($model,'isCanceled')."</div>";
					echo $form->checkBox($model,'isCanceled');
					echo $form->error($model,'isCanceled');
				?>
			</div>
		</div>
		<div class="col-md-3">
			<div class="form-group">
				<?php 
					echo $form->labelEx($model,'cancelReason'); 
					echo $form->dropDownList($model,'cancelReason', CHtml::listData(CancellationReason::model()->findAll(),'id', 'name'),
						array('empty'=>'--','id'=>'canceltype','onChange'=>'clickcr(this.value)','class'=>'form-control'));
					echo $form->error($model,'cancelReason');
				?>
			</div>
Ejemplo n.º 8
0
</td>
    <td><?php 
    echo CHtml::link(CHtml::encode($user->email), 'mailto:' . $user->email);
    ?>
</td>
    <td><?php 
    $confirm = CJavaScript::quote("Изменить роль пользователя '{$user->getUserName()}'?");
    $ajax = 'jQuery("#content").load(location.href,{"user":'******',"role":this.value});';
    echo chtml::activeDropDownList($user, 'role', $user->getRolesOptions(), array('onchange' => 'if(confirm(\'' . $confirm . '\'))' . $ajax . ' else return false;', 'id' => 'user_' . $user->id . '_role'));
    ?>
    </td>
    <td>
	    <?php 
    $confirm = CJavaScript::quote(($user->activated ? 'Деа' : 'А') . "ктивировать пользователя '{$user->username}'?");
    $ajax = 'jQuery("#content").load(location.href,{"user":'******',"activation":1});';
    echo chtml::activeCheckBox($user, 'activated', array('onclick' => 'if(confirm(\'' . $confirm . '\'))' . $ajax . ' else return false;', 'id' => 'user_' . $user->id . '_activation'));
    ?>
    </td>
    <td class="admin_actions">
        <?php 
    if ($user->id != Yii::app()->user->id) {
        echo CHtml::link(CHtml::image('/images/admin/actions/delete.png', 'Удалить', array('title' => 'Удалить')), array('delete', 'id' => $user->id), array('class' => 'action_delete'));
    }
    ?>
        <?php 
    if ($user->id == Yii::app()->user->id) {
        echo CHtml::link(CHtml::image('/images/admin/actions/edit.png', 'Редактировать', array('title' => 'Редактировать')), array('update'), array('class' => 'action_edit'));
    }
    ?>
    </td>
  </tr>
Ejemplo n.º 9
0
 public function getIssueDiagram($model = null)
 {
     $issuesArray = array();
     if (is_null($model)) {
         $issues = $this->issues_null;
     } else {
         $issues = $model->issues;
     }
     foreach ($issues as $value) {
         $link = chtml::link("x", array('issue/view', 'id' => $value->id));
         $pos = strpos($link, "href=");
         $link = substr($link, $pos + 6, strpos($link, "\"", $pos + 6) - $pos - 6);
         $arr = array('name' => $value->name, 'type' => $value->getTypeText(), 'link' => $link, 'id' => $value->id, 'description' => $value->description, 'status' => $value->getStatusText());
         if (count($value->issues) > 0) {
             $arr['items'] = $this->getIssueDiagram($value);
         }
         $issuesArray[] = $arr;
     }
     return $issuesArray;
 }
Ejemplo n.º 10
0
	<?php 
}
?>

	<?php 
echo $form->fileFieldRow($model->certification, 'cert_image', array('class' => 'span5', 'maxlength' => 100, 'hint' => 'Note: Certification Logo or Image', 'placeholder' => 'Logo or Image'));
?>
	
	<?php 
if (!$model->certification->isNewRecord) {
    ?>

	<div class="control-group ">
		<div class="controls"><span class="label label-info"><i class="icon-info"></i> This is the current image.</span><br/><br/><a class="thumbnail"><?php 
    echo chtml::image($model->certification->getCertImageUrl(), 'certification image');
    ?>
</a></div>
	</div>
	<?php 
}
?>

	<div class="form-actions">
		<?php 
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => $model->certification->isNewRecord ? 'Create' : 'Save'));
?>
	</div>

<?php 
$this->endWidget();