示例#1
0
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('action' => Yii::app()->createUrl($this->route), 'method' => 'get'));
?>
	<label>Challan Book No</label>
    <?php 
echo $form->textField($model, 'challan_number', array('span' => 5, 'maxlength' => 145, 'placeholder' => 'Challan Book Number'));
?>
        <div class="form-actions">
        <?php 
echo TbHtml::submitButton('Search', array('color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
    </div>

    <?php 
$this->endWidget();
?>

</div><!-- search-form -->

<?php 
echo TbHtml::Button('Export to Excel', array('color' => TbHtml::BUTTON_COLOR_WARNING, 'id' => "excel"));
?>

<?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'issue-return-grid', 'dataProvider' => $model->searchReport(), 'filter' => $model, 'columns' => array('challan_number', 'challan_form_number', 'name_person', 'date_fixed', 'vehicle_reg_no', 'scene_of_offence', array('header' => 'Place of Offence', 'value' => '$model->placeOfOffence->place'), 'date_time_offence', 'mobile', 'apperance_date', 'fine_amount', array('class' => 'bootstrap.widgets.TbButtonColumn', 'template' => ''))));
?>
<script>
$("#excel").click(function(){
	$('table.table').tableExport({type:'excel',escape:'false'});
});

</script>
示例#2
0
    ?>
    
    <fieldset>
      
            <?php echo $form->textFieldControlGroup($model,'nombre',array('size'=>60,'maxlength'=>100)); ?>
 
          
            <?php echo $form->textFieldControlGroup($model,'extensionarchivo',array('size'=>5,'maxlength'=>5)); ?>
 
          
            <?php echo $form->textFieldControlGroup($model,'longitudregistro'); ?>
 
           </fieldset>
    
    <div class="form-actions">
        <?php
        echo TbHtml::submitButton(Yii::t('app', 'Save'),array(
    'color' => TbHtml::BUTTON_COLOR_PRIMARY,
    'size' => TbHtml::BUTTON_SIZE_SMALL,
    ));
echo TbHtml::Button(Yii::t('app', 'Cancel'), array(
            'submit' => array('/site/index'),
            'style'=>'margin-left:30px;',
            'color' => TbHtml::BUTTON_COLOR_DANGER,
            'size' => TbHtml::BUTTON_SIZE_SMALL,
            ));
        ?>
    </div>
    <?php
$this->endWidget(); ?>
<div class="infoblock shadow"><h1 style="color:#20B2AA;">Manage Brands</h1></div>
<HR WIDTH=1180 ALIGN=LEFT >
 


<?php 
$this->widget('bootstrap.widgets.TbBreadcrumb', array('links' => array('Manage Brands')));
?>

<br/>

<div class="well-button">

              <?php 
echo TbHtml::Button('<i class="fa fa-arrow-left"></i> Back', array('onclick' => 'js:document.location.href="/mtcontrool"', 'id' => 'b1', 'title' => 'Back', 'color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_SMALL, 'style' => 'color: green;'));
?>
            
             
                
        </div>


<div class="search-form" style="display:none">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'brand-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array('brand_name', array('class' => 'bootstrap.widgets.TbButtonColumn', 'template' => '{update}&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{delete}', 'buttons' => array('update' => array('icon' => 'fa fa-pencil'), 'delete' => array('icon' => 'fa fa-trash-o'))))));
$this->widget('bootstrap.widgets.TbBreadcrumb', array('links' => array('App' => array(), 'Manage Apps' => array(), 'Runs')));
?>




<div class="search-form" style="display:none">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<br/><div class="well-button">

              <?php 
echo TbHtml::Button('<i class="fa fa-arrow-left"></i> Back', array('submit' => CHttpRequest::getUrlReferrer(), 'id' => 'b1', 'title' => 'Back', 'color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_SMALL, 'style' => 'color: green;'));
?>
            
            
            
                
        </div>

<div class="group-div">
   <div class="well-cinza">
                      <b><?php 
echo $nomeApp;
?>
</b>
                  </div>
<?php 
示例#5
0
<h1>In stock as on date</h1>
<?php 
if (!empty($list)) {
    ?>
<h3>Report</h3>
<?php 
    echo TbHtml::Button('Export to Excel', array('color' => TbHtml::BUTTON_COLOR_WARNING, 'id' => "excel"));
    ?>
<span style="margin-left:4px;">
<?php 
    echo TbHtml::Button('Export to PNG', array('color' => TbHtml::BUTTON_COLOR_INFO, 'id' => "pdf"));
    ?>
</span>
<span style="margin-left:4px;">
<?php 
    echo TbHtml::Button('Export to CSV', array('color' => TbHtml::BUTTON_COLOR_DANGER, 'id' => "csv"));
    ?>
</span>
<table class="items table">
	<thead>
		<tr>
			<?php 
    foreach ($list[0] as $l => $Val) {
        ?>
				<th><?php 
        echo $l;
        ?>
</th>
			<?php 
    }
    ?>
示例#6
0
        'mask' => '999999.99',
        'htmlOptions' => array('placeholder' => '0.00'),
            ), true
    );
//echo $form->textFieldControlGroup($model,'arancel',array('size'=>11,'maxlength'=>11));
echo TbHtml::customActiveControlGroup($input, $model, 'arancel');
echo $form->hiddenField($model,'idosplan',array('value'=>$model->idosplan));
 ?>
</fieldset>
    
    <div class="form-actions">
        <?php
        echo TbHtml::submitButton(Yii::t('app', 'Save'),array(
    'color' => TbHtml::BUTTON_COLOR_PRIMARY,
    'size' => TbHtml::BUTTON_SIZE_SMALL,
    ));
echo TbHtml::Button(Yii::t('app', 'Cancel'), array(
//    'url'=>Yii::app()->request->urlReferrer,
//            'onclick' => 'js:window.location="'.Yii::app()->baseUrl.'/index.php"',
    // para volver a la vista que llamó a esta
              'onclick'=>'js:window.location="'.Yii::app()->request->urlReferrer.'"',

            'style'=>'margin-left:30px;',
            'color' => TbHtml::BUTTON_COLOR_DANGER,
            'size' => TbHtml::BUTTON_SIZE_SMALL,
            ));
        ?>
    </div>
    <?php
$this->endWidget(); ?>
示例#7
0
    ));
    
     

    ?>


<div class="form-actions centrado">
    <?php
    
    echo TbHtml::submitButton(Yii::t('app', 'Accept'), array(
        'color' => TbHtml::BUTTON_COLOR_PRIMARY,
        'size' => TbHtml::BUTTON_SIZE_SMALL,
        'name'=>'savebutton',
        'value'=>'savebutton',
        
    ));
    echo TbHtml::Button(Yii::t('app', 'Cancel'), array(
        'onclick' => 'js:window.location="'.Yii::app()->baseUrl.'/index.php"',
        'style' => 'margin-left:30px;',
        'color' => TbHtml::BUTTON_COLOR_DANGER,
        'size' => TbHtml::BUTTON_SIZE_SMALL,
    ));
    ?>
</div>

<?php 

$this->endWidget(); ?>

<div class="well-button" align="right">
    <?php 
echo TbHtml::Button('<i class="fa fa-arrow-left"></i> Back', array('onclick' => 'js:document.location.href="/mtcontrool/index.php/testContext/admin"', 'id' => 'b1', 'title' => 'Back', 'color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_SMALL, 'style' => 'color: green;'));
?>
    <?php 
if ($notEdit != "true") {
    ?>
        <?php 
    echo TbHtml::Button('<i class="fa fa-pencil-square-o"></i> Edit', array('submit' => array('/testContext/update/' . $idTestContext), 'name' => 'update', 'color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_SMALL));
    ?>
    <?php 
}
?>
    
    <?php 
echo TbHtml::Button($textBtn . ' <i class="fa fa-play"></i>', array('submit' => array('/testContext/mef?idTestContext=' . $idTestContext), 'name' => 'del', 'color' => TbHtml::BUTTON_COLOR_INFO, 'size' => TbHtml::BUTTON_SIZE_SMALL));
?>
</div>


<div class="all">

    <div class="round">
        <b>Round of Testing</b>
        <?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'users-grid', 'dataProvider' => $dataProvider, 'summaryText' => '', 'columns' => array('description', array('header' => 'App', 'filter' => CHtml::listData(App::model()->findAll(), 'name', 'name'), 'name' => 'id_app', 'value' => '$data->iDAPP->name'), array('header' => 'Platform', 'filter' => CHtml::listData(Platforms::model()->findAll(), 'name', 'name'), 'name' => 'id_platform', 'value' => '$data->iDPLATFORM->name'), array('header' => 'Device', 'filter' => CHtml::listData(Device::model()->findAll(), 'description', 'description'), 'name' => 'id_device', 'value' => '$data->iDDEVICE->description'), array('header' => 'User', 'name' => 'id_user', 'value' => '$data->iDUSER->name'))));
?>
    </div>
    

    <div class="variations">
        ));

echo $form->errorSummary($model);
?>
<fieldset>
    <?php
    echo $form->textFieldControlGroup($model, 'nombre', array('size' => 60, 'maxlength' => 100));
    echo $form->textFieldControlGroup($model, 'mail', array('style' => 'text-transform:lowercase;'));
    echo $form->textFieldControlGroup($model, 'telefono', array('size' => 60, 'maxlength' => 100));
    echo $form->textAreaControlGroup($model, 'observaciones', array('size' => 60, 'maxlength' => 200));
    ?>
</fieldset>

<div class="form-actions">
    <?php
    echo TbHtml::submitButton(Yii::t('app', 'Save'), array(
        'color' => TbHtml::BUTTON_COLOR_PRIMARY,
        'size' => TbHtml::BUTTON_SIZE_SMALL,
    ));

    echo TbHtml::Button(Yii::t('app', 'Cancel'), array(
        'style' => 'margin-left:30px;',
        'color' => TbHtml::BUTTON_COLOR_DANGER,
        'size' => TbHtml::BUTTON_SIZE_SMALL,
        'onclick' => ' updateDialog.close();',
    ));
    ?>
</div>
<?php $this->endWidget(); ?>

示例#10
0
文件: write.php 项目: argenis1763/vc
	<?php 
echo TbHtml::label('<b>Status Essay</b>', 'text');
?>
	<?php 
echo EssaysHasCrugeUser::model()->validarStatus($essay->status);
?>
		
	<?php 
if (Yii::app()->user->checkAccess('Tutor') || Yii::app()->user->checkAccess('College') || Yii::app()->user->isSuperAdmin) {
    ?>
		<?php 
    echo "|";
    ?>
		<?php 
    echo TbHtml::Button('Cambiar Status', array('name' => 'end', 'color' => TbHtml::BUTTON_COLOR_DANGER, 'size' => TbHtml::BUTTON_SIZE_MINI, 'onclick' => '$("#myModal").dialog("open"); return false;'));
    ?>
	
		<?php 
    echo CHtml::hiddenField('idEssay', $essay->id_essay_cruge);
    ?>
		<?php 
    if ($essay->status == 8) {
        echo "| ";
        echo TbHtml::submitButton('Finalizar Essay', array('name' => 'end', 'color' => TbHtml::BUTTON_COLOR_PRIMARY, 'size' => TbHtml::BUTTON_SIZE_MINI));
    }
    ?>
			
	<?php 
}
echo TbHtml::endForm();
示例#11
0
			<?php 
}
?>
		</span>
	</div>
</div>
<?php 
if (!empty($list)) {
    ?>
<h3>Report</h3>
<?php 
    echo TbHtml::Button('Export to Excel', array('color' => TbHtml::BUTTON_COLOR_WARNING, 'id' => "excel"));
    ?>
<span style="margin-left:4px;">
<?php 
    echo TbHtml::Button('Export to PNG', array('color' => TbHtml::BUTTON_COLOR_INFO, 'id' => "pdf"));
    ?>
</span>
<table class="items table">
	<thead>
		<tr>
			<?php 
    foreach ($list[0] as $l => $Val) {
        ?>
				<th><?php 
        echo $l;
        ?>
</th>
			<?php 
    }
    ?>
示例#12
0
            
            
            


        </div>                            
        
</div>

		
	
                       <br/>
                        <div class="well-button">

              <?php 
echo TbHtml::Button($model->isNewRecord ? '<i class="fa fa-arrow-left"></i>' : Share, array('submit' => CHttpRequest::getUrlReferrer(), 'id' => 'b1', 'title' => 'Back', 'color' => TbHtml::BUTTON_COLOR_DEFAULT, 'size' => TbHtml::BUTTON_SIZE_LARGE, 'style' => 'color: green;'));
?>
            
             <?php 
echo TbHtml::submitButton('<i class="fa fa-check fa-lg"></i>', array('color' => TbHtml::BUTTON_COLOR_SUCCESS, 'size' => TbHtml::BUTTON_SIZE_LARGE, 'class' => 'btn pull-right', 'style' => 'color: white; margin-left: 4px;', 'title' => 'Create'));
?>
          
                        <?php 
echo TbHtml::button('<i class="fa fa-times fa-lg"></i>', array('onclick' => 'js:document.location.href="/mtcontrool"', 'color' => TbHtml::BUTTON_COLOR_DANGER, 'size' => TbHtml::BUTTON_SIZE_LARGE, 'title' => 'Cancel', 'class' => 'btn pull-right', 'style' => 'color: white;'));
?>
            
                
        </div>
<?php 
$this->endWidget();
?>
                                <div class="info_var">
                                    <p><b>Variations:</b> It is the values that can be assigned to an element.
                                        <br>
                                        <b>E.g.:</b> Nominal Element: Connection - Variation "wi-fi";
                                        <br>
                                        <!--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-->
                                        Interval Element: Localization - Variation "nearby" Start 1 End 10</p>
                                </div>
                            </div>
                            <div class="add-field" id="add-field<?php 
        echo $acc_id;
        ?>
">
                                
                                <?php 
        echo TbHtml::Button('<i class="fa fa-plus"></i>', array('name' => 'buttonAdd', 'id' => 'buttonAdd' . $acc_id, 'onClick' => "exibir({$acc_id});", 'color' => TbHtml::BUTTON_COLOR_SUCCESS, 'size' => TbHtml::BUTTON_SIZE_SMALL, 'title' => "Add more element"));
        ?>
                            </div>
                            <br>
                            <!--input type="button" onClick="exibir(<?php 
        echo $acc_id;
        ?>
);">add</input-->
                                
                        <?php 
    }
    ?>
 
                        </div>
                        <?php 
    echo $form->hiddenField($model, "[{$acc_id}]element_type", array('name' => 'element_type' . $acc_id, 'id' => "type_field" . $acc_id, 'disabled' => 'disabled', 'type' => 'hidden', 'onchange' => "Hab({$key})", 'style' => 'width:150px;'));