Esempio n. 1
0
 /**
  * @return array customized attribute labels (name=>label)
  */
 public function attributeLabels()
 {
     return array('id' => YII::t('commercial', 'Commercial'), 'name' => YII::t('commercial', 'Name'), 'yeshuv_id' => YII::t('commercial', 'Yeshuv'), 'file_name' => YII::t('commercial', 'File Name'), 'yeshuv.name_heb' => YII::t('screen', 'Yeshuv'), 'create_time' => YII::t('default', 'Create Time'), 'create_user_id' => YII::t('default', 'Create User'), 'update_time' => YII::t('default', 'Update Time'), 'update_user_id' => YII::t('default', 'Update User'));
 }
Esempio n. 2
0
<?php

/* @var $this AdController */
/* @var $model Ad */
$this->breadcrumbs = array(YII::t('ad', 'Ads') => array('screen/' . $this->getScreen()->id), YII::t('default', 'Create'));
?>

<h1><?php 
echo YII::t('ad', 'Create Ad for Screen:') . ' ' . $this->getScreen()->name;
?>
</h1>

<?php 
$this->renderPartial('_form', array('model' => $model));
Esempio n. 3
0
echo $form->errorSummary($model);
?>
    
    <?php 
echo $form->textFieldGroup($model, 'name', array('wrapperHtmlOptions' => array('class' => 'col-sm-5')));
?>

    <?php 
echo $form->dropDownListGroup($model, 'yeshuv_id', array('wrapperHtmlOptions' => array('class' => 'col-sm-5'), 'widgetOptions' => array('data' => Yeshuv::model()->getYeshuvOptions(), 'htmlOptions' => array())));
?>
    

    <?php 
echo $form->textFieldGroup($model, 'file_name', array('wrapperHtmlOptions' => array('class' => 'col-sm-5'), 'widgetOptions' => array('htmlOptions' => array('onClick' => 'js:openKCFinder(this)', 'style' => 'direction:ltr', 'readonly' => true, 'class' => 'default-cursor'))));
?>
</fieldset>        

<div class="form-actions">
        <?php 
$this->widget('booster.widgets.TbButton', array('buttonType' => 'submit', 'context' => 'primary', 'label' => YII::t('default', 'Submit')));
?>
        <?php 
$this->widget('booster.widgets.TbButton', array('buttonType' => 'reset', 'label' => YII::t('default', 'Reset')));
?>
</div>

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

</div><!-- form -->
Esempio n. 4
0
$this->head();
?>
</head>
<body>
<?php 
$this->beginBody();
?>

<div class="wrap">
    <?php 
NavBar::begin(['brandLabel' => YII::t('backend', 'Magin Gam'), 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
$menuItems = [['label' => YII::t('backend', 'Home'), 'url' => ['/site/index']]];
if (Yii::$app->user->isGuest) {
    $menuItems[] = ['label' => YII::t('backend', 'Login'), 'url' => ['/user/security/login']];
} else {
    $menuItems[] = ['label' => YII::t('backend', 'Logout (') . Yii::$app->user->identity->username . ')', 'url' => ['/user/security/logout'], 'linkOptions' => ['data-method' => 'post']];
}
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => $menuItems]);
NavBar::end();
?>

    <div class="container">
        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
        <?php 
echo Alert::widget();
?>
        <?php 
echo $content;
?>
Esempio n. 5
0
        <?php 
echo $form->error($model, 'message');
?>
    </div>
    <?php 
echo $form->hiddenField($model, 'order');
?>
    <?php 
echo $form->hiddenField($model, 'recipient', array('id' => 'recipient'));
?>
    <?php 
if (User::model()->isAuthor()) {
    ?>
    	<div class="row">
    	     <p><?php 
    echo YII::t('project', 'Work price:');
    ?>
</p>
    	    <?php 
    echo $form->textField($model, 'cost');
    ?>
    	    <?php 
    echo $form->error($model, 'cost');
    ?>
    	</div>
    <?php 
}
?>
    <div class="row buttons">
        <p><?php 
echo Yii::t('site', 'Additionally send:');
Esempio n. 6
0
<?php

/* @var $this AdController */
/* @var $model Ad */
$this->breadcrumbs = array(YII::t('ad', 'Ads') => array('screen/' . $this->getScreen()->id), $model->name);
$this->menu = array(array('label' => YII::t('ad', 'Create Ad'), 'url' => array('create', 'screen_id' => $this->getScreen()->id)), array('label' => YII::t('ad', 'Update Ad'), 'url' => array('update', 'id' => $model->id, 'screen_id' => $this->getScreen()->id)), array('label' => YII::t('ad', 'Delete Ad'), 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id, 'screen_id' => $this->getScreen()->id), 'confirm' => Yii::t('default', 'Are you sure you want to delete this item?'))));
?>

<h1><?php 
echo YII::t('ad', 'View Ad') . ' #' . $model->id;
?>
</h1>

<?php 
$days = $model->sun ? $model->getAttributeLabel('sun') . ', ' : ' ';
$days .= $model->mon ? $model->getAttributeLabel('mon') . ', ' : ' ';
$days .= $model->tue ? $model->getAttributeLabel('tue') . ', ' : ' ';
$days .= $model->wed ? $model->getAttributeLabel('wed') . ', ' : ' ';
$days .= $model->thu ? $model->getAttributeLabel('thu') . ', ' : ' ';
$days .= $model->fri ? $model->getAttributeLabel('fri') . ', ' : ' ';
$days .= $model->sat ? $model->getAttributeLabel('sat') . ', ' : ' ';
$days = trim($days, "\t\n\r, ");
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('name', 'start', 'expire', array('name' => Yii::t('ad', 'Days'), 'type' => 'raw', 'value' => $days), 'duration', array('name' => $model->getAttributeLabel('html'), 'type' => 'html', 'value' => CHtml::decode($model->html), 'cssClass' => 'detailedViewWidth'))));
$this->endWidget();
?>
		<div class="chtpl0-form">
			<textarea></textarea>
			<div class="chtpl0-subm">
				<h5><?php 
echo ProjectModule::t('Send message');
?>
</h5>
				<br>
				<button class="chtpl0-submit1"><?php 
echo ProjectModule::t('to author');
?>
</button>
				<button class="chtpl0-submit2"><?php 
echo YII::t('site', 'For Customer');
?>
</button><?php 
echo ProjectModule::t('to сustomer');
?>
			</div>
		</div>
        <?php 
$this->widget('YiiChatWidget', array('chat_id' => $model->id, 'executor' => $model->executor, 'identity' => Yii::app()->user->id, 'selector' => '#chatWindow', 'minPostLen' => 1, 'maxPostLen' => 5000, 'model' => new ChatHandler(), 'data' => 'any data', 'onSuccess' => new CJavaScriptExpression("function(code, text, post_id){   }"), 'onError' => new CJavaScriptExpression("function(errorcode, info){  }")));
?>
    </div>
</div>

<div class="col-xs-12 payment-block">
    <?php 
$this->widget('application.modules.project.widgets.payment.PaymentWidget', array('projectId' => $model->id));
Esempio n. 8
0
echo '</table>';
// body
echo '<span><a href="#" onclick="addSalary();return false;"><i class="icon-plus"></i>New salary</a></span>';
echo '</div></div>';
// end body
echo '</div>';
// end accordion-group
/** END CONTACT **/
?>
                
         <?php 
echo '<div class="accordion-group">';
// heading
echo '<div class="accordion-heading">';
echo '<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#form-new-customer-basic-info-collapse">';
echo YII::t('lang', 'Benefits');
echo '</a></div>';
// end heading
echo '<div id="form-new-customer-basic-info-collapse" class="accordion-body collapse in">
      		<div class="accordion-inner">';
echo '<table id="table_benefits" class="items table table-bordered">';
echo '<thead><tr>';
echo '<th></th>';
echo '<th>Benefits Name</th>';
echo '<th>Benefits Amount</th>';
echo '</tr></thead>';
echo '<tbody>';
$total_benefit = 0;
if (count($benefit) > 0) {
    $tax_id = count($benefit);
    $i = 1;
Esempio n. 9
0
<?php

/* @var $this CommercialController */
/* @var $dataProvider CActiveDataProvider */
$this->breadcrumbs = array(YII::t('commercial', 'Commercials'));
$this->menu = array(array('label' => YII::t('commercial', 'Create Commercial Area'), 'url' => array('create')), array('label' => YII::t('commercial', 'Manage Commercial Area'), 'url' => array('admin')));
?>

<h1><?php 
echo YII::t('commercial', 'Commercials');
?>
</h1>

<?php 
$this->widget('zii.widgets.CListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
Esempio n. 10
0
    }
} else {
    mkdir($path);
}
Yii::app()->getClientScript()->registerCssFile(Yii::app()->theme->baseUrl . '/css/custom.css');
if (User::model()->isCustomer() && (!$order->is_active || !$moderated)) {
    echo '<div class="zakaz-info-header-customer" ><font color="green">' . YII::t('site', 'AfterModerate') . '.</font></div>';
    echo '<div class="zakaz-info-header-customer-empty" >&nbsp;</div>';
}
?>
<div class="container">
    <div class="row r">
		<?php 
if (User::model()->isExecutor($order->id)) {
    // Если назначен исполнитель, и именнно он смотрит
    echo '<div class="zakaz-info-header" ><font color="green">' . YII::t('site', 'YouAreExecutor') . '</font></div>';
    echo '<div class="zakaz-info-header-customer-empty">&nbsp;</div>';
}
?>
        <div class="col-xs-12 info-block" style="margin-bottom: 15px;">
            <div class="panel-group" id="info-block">
                <div class="panel panel-default">
                    <div class="panel-heading panel-heading-white">
                        <h4 class="panel-title">
                            <a data-toggle="collapse" data-parent="#info-block" href="#infoZakaz">
                                <?php 
echo ProjectModule::t('Ordering Information') . ' №' . $order->id;
?>
                            </a>
                        </h4>
                    </div>
Esempio n. 11
0
<?php

/* @var $this AdController */
/* @var $model Ad */
$this->breadcrumbs = array(YII::t('ad', 'Ads') => array('screen/' . $this->getScreen()->id), $model->name => array('view', 'id' => $model->id, 'screen_id' => $this->getScreen()->id), YII::t('default', 'Update'));
$this->menu = array(array('label' => YII::t('ad', 'Create new Ad'), 'url' => array('create', 'screen_id' => $this->getScreen()->id)), array('label' => YII::t('ad', 'Delete Ad'), 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id, 'screen_id' => $this->getScreen()->id), 'confirm' => Yii::t('default', 'Are you sure you want to delete this item?'))), array('label' => YII::t('ad', 'Manage Ad'), 'url' => array('admin', 'screen_id' => $this->getScreen()->id), 'visible' => Yii::app()->user->checkAccess('AdAdministrating')));
?>
<div class="span-22">
<h1><?php 
echo YII::t('ad', 'Update Ad') . ' ' . $model->id;
?>
</h1>

<?php 
$this->renderPartial('_form', array('model' => $model));
?>
</div>
Esempio n. 12
0
											 te = val;
											 err=0;
										 }
			       break;
			       case 'input_email' :  $this.parent().removeClass('has-success').addClass('has-error');
				                         err=1;
			                             if(/^([a-z0-9_-]+\.)*[a-z0-9_-]+@[a-z0-9_-]+(\.[a-z0-9_-]+)*\.[a-z]{2,8}$/.test(val)){
										    $this.parent().removeClass('has-error').addClass('has-success');
											te = val;
											err=0;
										 }
			       break;
		        }
				////////////
				
			})
			console.log(err + ' ' +te);
			if(err==0){
				$.each($(".sends"), function(i,v){
					var name = $(v).attr('name');
					$(v).attr('name', name + '[]');
				})
			  $("#form-thankyou").submit();
			}
			else{
				
				alert('<?=YII::t("api","fields_required");?>')
			}
	})
})
</script>
Esempio n. 13
0
                    document.getElementById("mostview").style.marginTop = document.getElementById("advertise").style.height;
                    //alert(width);
                    
                }else{
                    document.getElementById("advertise").style.position = 'static';
                    document.getElementById("advertise").style.width = '100%';
                    document.getElementById("advertise").style.marginTop = '20px';
                    document.getElementById("mostview").style.marginTop = '10px';
                    document.getElementById("advertise1").style.display = 'none';
                }});
          
                });
            </script>
            <div class="box" id="mostview">
                <div style='margin-top: 20px; height: 30px; font-size: 20px; color: #ff0084; border-bottom: #245580 solid 2px'><?php 
echo YII::t('frontend', 'Popular');
?>
</div>
                <div class='box-product' style='margin: 0' >
                    <?php 
echo mostView::widget();
?>
                </div>
            </div>
            <div id="box-show">
                <div class='title'><?php 
echo Yii::t('frontend', 'Get exercise free');
?>
 <a><span onclick="hideBox()" class="glyphicon glyphicon-chevron-down pull-right" style="margin-top: 4px"  aria-hidden="true"></span></a></div>
                <div style="padding: 20px">
                    <?php 
Esempio n. 14
0
<?php

/* @var $this CommercialController */
/* @var $model Commercial */
$this->breadcrumbs = array(YII::t('commercial', 'Commercials') => array('index'), YII::t('default', 'Manage'));
$this->menu = array(array('label' => YII::t('commercial', 'List Commercial Area'), 'url' => array('index')), array('label' => YII::t('commercial', 'Create Commercial Area'), 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$('#commercial-grid').yiiGridView('update', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<h1><?php 
echo YII::t('commercial', 'Manage Commercials');
?>
</h1>

<p>
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>

<?php 
echo CHtml::link(YII::t('default', 'Advanced Search'), '#', array('class' => 'search-button'));
?>
<div class="search-form" style="display:none">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('booster.widgets.TbExtendedGridView', array('type' => 'striped', 'id' => 'commercial-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array('id', 'name', 'yeshuv_id', 'file_name', array('class' => 'CButtonColumn'))));
Esempio n. 15
0
<?php

/* @var $this CommercialController */
/* @var $model Commercial */
$this->breadcrumbs = array(YII::t('commercial', 'Commercials') => array('index'), $model->name);
$this->menu = array(array('label' => YII::t('commercial', 'List Commercial Area'), 'url' => array('index')), array('label' => YII::t('commercial', 'Create Commercial Area'), 'url' => array('create')), array('label' => YII::t('commercial', 'Update Commercial Area'), 'url' => array('update', 'id' => $model->id)), array('label' => YII::t('commercial', 'Delete Commercial Area'), 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => Yii::t('default', 'Are you sure you want to delete this item?'))), array('label' => YII::t('commercial', 'Manage Commercial Area'), 'url' => array('admin')));
?>

<h1><?php 
echo YII::t('commercial', 'View Commercial Area') . '# ' . $model->id;
?>
</h1>

<?php 
$this->widget('booster.widgets.TbDetailView', array('data' => $model, 'attributes' => array('name', array('name' => 'yeshuv.name_heb'), 'file_name')));
Esempio n. 16
0
 /**
  * @return array customized attribute labels (name=>label)
  */
 public function attributeLabels()
 {
     return array('id' => 'ID', 'name' => YII::t('ad', 'Name'), 'sun' => YII::t('ad', 'Sun'), 'mon' => YII::t('ad', 'Mon'), 'tue' => YII::t('ad', 'Tue'), 'wed' => YII::t('ad', 'Wed'), 'thu' => YII::t('ad', 'Thu'), 'fri' => YII::t('ad', 'Fri'), 'sat' => YII::t('ad', 'Sat'), 'html' => YII::t('ad', 'html'), 'start' => YII::t('ad', 'Start'), 'expire' => YII::t('ad', 'Expire'), 'duration' => YII::t('ad', 'Duration'), 'create_time' => YII::t('default', 'Create Time'), 'create_user_id' => YII::t('default', 'Create User'), 'update_time' => YII::t('default', 'Update Time'), 'update_user_id' => YII::t('default', 'Update User'));
 }
Esempio n. 17
0
 /**
  * @return array customized attribute labels (name=>label)
  */
 public function attributeLabels()
 {
     return array('id' => 'ID', 'username' => YII::t('user', 'Username'), 'password' => YII::t('user', 'Password'), 'password_repeat' => YII::t('user', 'Password Repeat'), 'last_login_time' => YII::t('user', 'Last Login Time'), 'user_role' => YII::t('user', 'User Role'));
 }
Esempio n. 18
0
Yii::app()->getClientScript()->registerCssFile(Yii::app()->theme->baseUrl . '/css/custom.css');
if (isset(Zakaz::$files_folder)) {
    $url = Zakaz::$files_folder . $order->id . '/';
} else {
    $url = '/uploads/' . $order->id . '/';
}
$uploaded_files = $order->generateMaterialsList($url);
$upload_params = array('id' => $order->id);
?>
<div class="container container-chat">
	<?php 
if (User::model()->isExecutor($order->id) && !$isCorrector) {
    // Если назначен исполнитель, и именнно он смотрит
    echo '<div class="zakaz-info-header" ><font color="green">' . YII::t('site', 'YouAreExecutor') . '</font></div>';
} elseif ((User::model()->isCustomer() || User::model()->isCorrector()) && (!$order->is_active || !$moderated)) {
    echo '<div class="zakaz-info-header" ><font color="green">' . YII::t('site', 'AfterModerate') . '.</font></div>';
}
?>
	<div class="col-xs-12 info-block" style="margin-bottom: 15px;">
		<div class="panel-group" id="info-block">
			<div class="panel panel-default">
				<div class="panel-heading panel-heading-white">
					<h4 class="panel-title">
						<a data-toggle="collapse" data-parent="#info-block" href="#infoZakaz">
							<?php 
echo ProjectModule::t('Ordering Information') . ' №' . $order->id;
?>
						</a>
					</h4>
				</div>
 /**
  * @return array customized attribute labels (name=>label)
  */
 public function attributeLabels()
 {
     return array('screen_id' => YII::t('screen', 'Screen'), 'commercial_id' => YII::t('commercial', 'Commercial'), 'create_time' => YII::t('default', 'Create Time'), 'create_user_id' => YII::t('default', 'Create User'), 'update_time' => YII::t('default', 'Update Time'), 'update_user_id' => YII::t('default', 'Update User'));
 }
Esempio n. 20
0
<?php

/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */
$this->layout = 'login';
$this->pageTitle = Yii::app()->name . ' - ' . Yii::t('default', 'Login');
?>
<div id="logo">
    <?php 
echo CHtml::image(Yii::app()->baseUrl . '/images/NYMedia.gif', 'NYMedia Logo', array('width' => '170px', 'height' => '70px'));
?>
</div>

<h1><?php 
echo Yii::t('login', 'Login');
?>
</h1>


<?php 
$form = $this->beginWidget('booster.widgets.TbActiveForm', array('id' => 'verticalForm'));
echo $form->textFieldGroup($model, 'username');
echo $form->passwordFieldGroup($model, 'password');
echo $form->checkboxGroup($model, 'rememberMe');
$this->widget('booster.widgets.TbButton', array('buttonType' => 'submit', 'context' => 'primary', 'label' => YII::t('default', 'Login')));
$this->endWidget();
unset($form);
Esempio n. 21
0
 /**
  * Reset dashboard state to default and go to default action
  */
 public function actionResetDash()
 {
     if ($this->setPreference(null)) {
         Yii::app()->user->setFlash('resetDashboard', YII::t('Dashboard', 'Dashboard reset to default.'));
         $this->redirect(array($this->defaultAction));
     }
 }
Esempio n. 22
0
<?php

/* @var $this AdController */
/* @var $model Ad */
$this->breadcrumbs = array(YII::t('ad', 'Ads') => array('screen/' . $this->getScreen()->id), YII::t('default', 'Manage'));
$this->menu = array(array('label' => YII::t('ad', 'Create Ad'), 'url' => array('create', 'screen_id' => $this->getScreen()->id)));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$('#ad-grid').yiiGridView('update', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<h1><?php 
echo Yii::t('ad', 'Manage Ads');
?>
</h1>

<p>
<?php 
echo Yii::t('default', 'You may optionally enter a comparison operator');
?>
 (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
<?php 
echo Yii::t('default', 'or');
?>
 <b>=</b>) <?php 
echo Yii::t('default', 'at the beginning of each of your search values to specify how the comparison should be done.');
?>
</p>

<?php 
echo CHtml::link(Yii::t('default', 'Advanced Search'), '#', array('class' => 'search-button'));
?>
<div class="search-form" style="display:none">
Esempio n. 23
0
 /**
  * @return array customized attribute labels (name=>label)
  */
 public function attributeLabels()
 {
     return array('code' => YII::t('weather', 'Weather Area'), 'Weather Area' => YII::t('weather', 'Weather Area'), 'name_heb' => YII::t('weather', 'Name Hebrew'), 'name_eng' => YII::t('weather', 'Name English'));
 }
Esempio n. 24
0
 /**
  * @return array customized attribute labels (name=>label)
  */
 public function attributeLabels()
 {
     return array('id' => YII::t('monitor', 'ID'), 'name' => YII::t('monitor', 'Name'), 'size' => YII::t('monitor', 'Size'), 'create_time' => YII::t('default', 'Create Time'), 'create_user_id' => YII::t('default', 'Create User'), 'update_time' => YII::t('default', 'Update Time'), 'update_user_id' => YII::t('default', 'Update User'));
 }
Esempio n. 25
0
 /**
  * @return array customized attribute labels (name=>label)
  */
 public function attributeLabels()
 {
     return array('id' => Yii::t('theme', 'Theme'), 'theme' => Yii::t('theme', 'Theme'), 'description' => Yii::t('theme', 'Description'), 'create_time' => YII::t('default', 'Create Time'), 'create_user_id' => YII::t('default', 'Create User'), 'update_time' => YII::t('default', 'Update Time'), 'update_user_id' => YII::t('default', 'Update User'));
 }
Esempio n. 26
0
        <?php 
echo CHtml::decode($data->start);
?>
	<br />

        <b><?php 
echo CHtml::encode($data->getAttributeLabel('expire'));
?>
:</b>
        <?php 
echo CHtml::decode($data->expire);
?>
	<br />

        <b><?php 
echo CHtml::encode(YII::t('ad', 'Days'));
?>
:</b>
        <?php 
$screenDays = $data->sun == "1" ? CHtml::encode($data->getAttributeLabel('sun')) . ", " : "";
?>
        <?php 
$screenDays .= $data->mon == "1" ? CHtml::encode($data->getAttributeLabel('mon')) . ", " : "";
?>
        <?php 
$screenDays .= $data->tue == "1" ? CHtml::encode($data->getAttributeLabel('tue')) . ", " : "";
?>
        <?php 
$screenDays .= $data->wed == "1" ? CHtml::encode($data->getAttributeLabel('wed')) . ", " : "";
?>
        <?php 
Esempio n. 27
0
<?php

/* @var $this CommercialController */
/* @var $model Commercial */
$this->breadcrumbs = array(YII::t('commercial', 'Commercials') => array('index'), YII::t('default', 'Create'));
$this->menu = array(array('label' => YII::t('commercial', 'List Commercial Area'), 'url' => array('index')), array('label' => YII::t('commercial', 'Manage Commercial Area'), 'url' => array('admin')));
?>

<h1><?php 
echo YII::t('commercial', 'Create Commercial Area');
?>
</h1>

<?php 
$this->renderPartial('_form', array('model' => $model));
Esempio n. 28
0
<?php

/* @var $this CommercialController */
/* @var $model Commercial */
$this->breadcrumbs = array(YII::t('commercial', 'Commercials') => array('index'), $model->name => array('view', 'id' => $model->id), YII::t('default', 'Update'));
$this->menu = array(array('label' => YII::t('commercial', 'List Commercial Area'), 'url' => array('index')), array('label' => YII::t('commercial', 'Create Commercial Area'), 'url' => array('create')), array('label' => YII::t('commercial', 'View Commercial Area'), 'url' => array('view', 'id' => $model->id)), array('label' => YII::t('commercial', 'Manage Commercial Area'), 'url' => array('admin')));
?>

<h1><?php 
echo YII::t('commercial', 'Update Commercial Area') . '# ' . $model->id;
?>
</h1>

<?php 
$this->renderPartial('_form', array('model' => $model));
Esempio n. 29
0
echo Yii::t('lang', 'Fields with * are required');
?>
.</p>

	<?php 
echo $form->errorSummary($model);
echo '<div class="accordion" id="accordion2">';
/**
 * ============= BASIC INFORMATION
 */
// accordion group starts
echo '<div class="accordion-group">';
// heading
echo '<div class="accordion-heading lb_accordion_heading">';
echo '<a class="accordion-toggle lb_accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#form-new-customer-basic-info-collapse">';
echo YII::t('lang', 'Basic Information');
echo '</a></div>';
// end heading
// body
echo '<div id="form-new-customer-basic-info-collapse" class="accordion-body collapse in">
      			<div class="accordion-inner">';
echo $form->textFieldRow($model, 'lb_customer_name', array('class' => 'span6', 'maxlength' => 255));
echo $form->error($model, 'lb_customer_name');
echo $form->textFieldRow($model, 'lb_customer_website_url', array('class' => 'span6'));
echo $form->error($model, 'lb_customer_website_url');
echo $form->textFieldRow($model, 'lb_customer_registration', array());
echo $form->error($model, 'lb_customer_registration');
if ($own) {
    echo $form->checkBoxRow($model, 'lb_customer_is_own_company', array("checked" => "checked"));
} else {
    echo $form->checkBoxRow($model, 'lb_customer_is_own_company');
Esempio n. 30
0
                    minlength: "<?=YII::t("api","required_3char");?>",
                },
                city: {
                     required:"<?=YII::t("api","city_required");?>",
                    minlength: "<?=YII::t("api","required_3char");?>",
                },
                country: {
                    required:"<?=YII::t("api","country_required");?>",
                    minlength: "<?=YII::t("api","required_3char");?>",
                },
                handynummer: {
                    required:"<?=YII::t("api","phone_required");?>",
                    minlength: "<?=YII::t("api","required_10char");?>",
                },
                email: "<?=YII::t("api","email_required");?>",
                check_agb: "<?=YII::t("api","check_ag");?>"
            },

            errorElement: "em",
            errorPlacement: function (error, element) {
                error.addClass("help-block");
                element.parents(".form-group").addClass("has-feedback");
                if (element.prop("type") === "checkbox") {
                    error.insertAfter(element);
                } else {
                    error.insertAfter(element);
                }
                if (!element.next("i")[0]) {
                    $('<i class="fa fa-times form-control-feedback"></i>').insertAfter(element);
                }
            },