<div class="art-blockcontent-br"></div>
			<div class="art-blockcontent-tc"></div>
			<div class="art-blockcontent-bc"></div>
			<div class="art-blockcontent-cl"></div>
			<div class="art-blockcontent-cr"></div>
			<div class="art-blockcontent-cc"></div>
			<div class="art-blockcontent-body">
				<div>
					<!--  <p>Lorem ipsum dolor sit amet. Nam sit amet sem. Mauris a ante.</p> -->
					<table>
						<?php 
foreach ($this->getRecentCat() as $dataC) {
    ?>
						<tr>
							<td colspan=2><b><?php 
    echo SParameter::item('cCategory', $dataC->category_id);
    ?>
							</b>
							</td>
						</tr>
						<?php 
    foreach ($this->getRecentData1($dataC->category_id) as $data) {
        ?>
						<tr>
							<td width=15%><?php 
        echo $data->sender_date;
        ?>
							</td>
							<td><?php 
        echo $data->long_desc;
        ?>
<table>
	<?php 
foreach ($this->getRecentCat() as $dataC) {
    ?>
	<tr>
		<td colspan=2><b><?php 
    echo SParameter::item('cCategory', $dataC->category_id);
    ?>
		</b></td>
	</tr>
	<?php 
    foreach ($this->getRecentData1($dataC->category_id) as $data) {
        ?>
	<tr>
		<td width=15%><?php 
        echo SParameter::cDateDisplay($data->sender_date);
        ?>
		</td>
		<td><?php 
        echo $data->long_desc;
        ?>
</td>
	</tr>
	<?php 
    }
    ?>
	<tr>
		<td colspan=2>.</td>
	</tr>
	<?php 
}
示例#3
0
<?php

$this->breadcrumbs = array('Parameter' => array('index'), 'Manage');
?>

<div class="page-header">
	<h1>
		<?php 
echo CHtml::image(Yii::app()->request->baseUrl . '/images/icon/ms_dos_batch_file.png');
?>
		Data Parameter
	</h1>
</div>
<?php 
$this->widget('DropDownRedirect', array('data' => SParameter::items3("Any"), 'url' => $this->createUrl($this->route, array_merge($_GET, array('type' => '__value__'))), 'select' => isset($_GET['type']) ? $_GET['type'] : "(ALL)"));
?>

<?php 
//$this->widget('bootstrap.widgets.BootGridView', array(
$this->widget('ext.groupgridview.GroupGridView', array('extraRowColumns' => array('type'), 'id' => 'parameter-grid', 'dataProvider' => $model->search($type), 'itemsCssClass' => 'table table-striped table-bordered', 'template' => '{items}{pager}', 'columns' => array(array('class' => 'bootstrap.widgets.BootButtonColumn', 'template' => '{updated}{delete}', 'deleteButtonUrl' => 'Yii::app()->createUrl("/sParameter/delete",array("pk1"=>$data->type,"pk2"=>$data->code))', 'buttons' => array('updated' => array('label' => 'Update', 'url' => 'Yii::app()->createUrl("/sParameter/update",array("pk1"=>$data->type,"pk2"=>$data->code,"asDialog"=>1,"gridId"=>$this->grid->id))', 'click' => 'function(){$("#cru-frame").attr("src",$(this).attr("href")); $("#cru-dialog").dialog("open");  return false;}'))), 'code', 'name')));
?>

<hr />

<?php 
$this->widget('bootstrap.widgets.BootTabbable', array('type' => 'tabs', 'tabs' => array(array('label' => 'Existing Parameter', 'content' => $this->renderPartial("_formE", array("model" => $modelParameter), true)), array('label' => 'New Parameter', 'content' => $this->renderPartial("_form", array("model" => $modelParameter), true)))));
?>

<?php 
//--------------------- begin new code --------------------------
// add the (closed) dialog for the iframe
示例#4
0
<?php

$form = $this->beginWidget('BootActiveForm', array('id' => 'parameter-form', 'type' => 'horizontal', 'enableAjaxValidation' => false));
?>

<?php 
echo $form->dropDownListRow($model, 'type', SParameter::items2("ALL"));
?>

<?php 
echo $form->textFieldRow($model, 'code');
?>

<?php 
echo $form->textFieldRow($model, 'name', array('class' => 'span3'));
?>

<div class="form-actions">
	<?php 
echo CHtml::htmlButton($model->isNewRecord ? '<i class="icon-ok"></i> Create' : '<i class="icon-ok"></i> Save', array('class' => 'btn', 'type' => 'submit'));
?>
</div>


<?php 
$this->endWidget();
示例#5
0
<?php

$form = $this->beginWidget('BootActiveForm', array('id' => 'c-jemaat-form', 'type' => 'horizontal', 'enableAjaxValidation' => false));
?>

<?php 
echo $form->errorSummary($model);
?>


<?php 
echo $form->textFieldRow($model, 'branch_code', array('class' => 'span3'));
echo $form->dropDownListRow($model, 'structure_id', SParameter::items("cStructure"));
echo $form->textFieldRow($model, 'name', array('class' => 'span3'));
echo $form->textFieldRow($model, 'address', array('class' => 'span3'));
echo $form->textFieldRow($model, 'address2', array('class' => 'span3'));
echo $form->textFieldRow($model, 'address3', array('class' => 'span3'));
echo $form->textFieldRow($model, 'address4', array('class' => 'span3'));
?>

<?php 
/*
<?php echo $form->labelEx($model,'propinsi_id'); ?>
<?php
echo $form->dropDownList($model,'propinsi_id',sKabupatenPropinsi::items("Any"),
		array(
				'empty'=>'select Propinsi:',
				'ajax' => array(
						'type'=>'POST',
						'url'=>CController::createUrl('aOrganization/kabupatenUpdate'),
						'update'=>'#'.CHtml::activeId($model,'kabupaten_id'),