Ejemplo n.º 1
0
<?php 
if (isset($_GET['id'])) {
    if (!($data = Yii::app()->functions->getAddonCategory2($_GET['id']))) {
        echo "<div class=\"uk-alert uk-alert-danger\">" . Yii::t("default", "Sorry but we cannot find what your are looking for.") . "</div>";
        return;
    }
}
?>
                                 
<?php 
if (Yii::app()->functions->multipleField() == 2) {
    ?>

<?php 
    Widgets::multipleFields(array('AddOn Name', 'Description'), array('subcategory_name', 'subcategory_description'), $data, array(true, false));
    ?>
<div class="spacer"></div>

<?php 
} else {
    ?>
<div class="uk-form-row">
  <label class="uk-form-label"><?php 
    echo Yii::t("default", "AddOn Name");
    ?>
</label>
  <?php 
    echo CHtml::textField('subcategory_name', isset($data['subcategory_name']) ? $data['subcategory_name'] : "", array('class' => 'uk-form-width-large', 'data-validation' => "required"));
    ?>
</div>
Ejemplo n.º 2
0
        return;
    }
}
Yii::app()->functions->data = 'list';
$subcat = Yii::app()->functions->getSubcategory();
$selected_cat = isset($data['category']) ? json_decode($data['category']) : false;
?>
                                 

<div class="uk-grid">

<div class="uk-width-1-2">

<?php 
if (Yii::app()->functions->multipleField() == 2) {
    Widgets::multipleFields(array('AddOn Item', 'Description'), array('sub_item_name', 'item_description'), $data, array(true, false));
    ?>
<div class="spacer"></div>

<?php 
} else {
    ?>
<div class="uk-form-row">
  <label class="uk-form-label"><?php 
    echo Yii::t("default", "AddOn Item");
    ?>
</label>
  <?php 
    echo CHtml::textField('sub_item_name', isset($data['sub_item_name']) ? $data['sub_item_name'] : "", array('class' => 'uk-form-width-large', 'data-validation' => "required"));
    ?>
</div>
Ejemplo n.º 3
0
<?php 
if (isset($_GET['id'])) {
    if (!($data = Yii::app()->functions->getSize($_GET['id']))) {
        echo "<div class=\"uk-alert uk-alert-danger\">" . Yii::t("default", "Sorry but we cannot find what your are looking for.") . "</div>";
        return;
    }
}
?>
                                 

<?php 
if (Yii::app()->functions->multipleField() == 2) {
    ?>

<?php 
    Widgets::multipleFields(array('Size Name'), array('size_name'), $data, array(true));
    ?>
<div class="spacer"></div>

<?php 
} else {
    ?>

<div class="uk-form-row">
  <label class="uk-form-label"><?php 
    echo Yii::t("default", "Size Name");
    ?>
</label>
  <?php 
    echo CHtml::textField('size_name', isset($data['size_name']) ? $data['size_name'] : "", array('class' => 'uk-form-width-large', 'data-validation' => "required"));
    ?>
Ejemplo n.º 4
0
    //dump($two_flavors_position);
    $require_addon = isset($data['require_addon']) ? (array) json_decode($data['require_addon']) : false;
}
?>
                                 


<div class="uk-grid">
    <div class="uk-width-1-2">
    
    <?php 
if (Yii::app()->functions->multipleField() == 2) {
    ?>
    
    <?php 
    Widgets::multipleFields(array('Food Item Name', 'Description'), array('item_name', 'item_description'), $data, array(true, false), array('text', 'textarea'));
    ?>
	<div class="spacer"></div>

    <?php 
} else {
    ?>
	<div class="uk-form-row">
	<label class="uk-form-label"><?php 
    echo Yii::t("default", "Food Item Name");
    ?>
</label>
	<?php 
    echo CHtml::textField('item_name', isset($data['item_name']) ? $data['item_name'] : "", array('class' => 'uk-form-width-large', 'data-validation' => "required"));
    ?>
	</div>
Ejemplo n.º 5
0
    echo CHtml::hiddenField("redirect", Yii::app()->request->baseUrl . "/merchant/CookingRef/Do/Add");
}
?>

<?php 
if (isset($_GET['id'])) {
    if (!($data = Yii::app()->functions->getCookingRef($_GET['id']))) {
        echo "<div class=\"uk-alert uk-alert-danger\">" . Yii::t("default", "Sorry but we cannot find what your are looking for.") . "</div>";
        return;
    }
}
?>
                                 
<?php 
if (Yii::app()->functions->multipleField() == 2) {
    Widgets::multipleFields(array('Cooking Ref. name'), array('cooking_name'), $data, array(true));
    ?>
<div class="spacer"></div>
<?php 
} else {
    ?>
<div class="uk-form-row">
  <label class="uk-form-label"><?php 
    echo Yii::t("default", "Cooking Ref. name");
    ?>
</label>
  <?php 
    echo CHtml::textField('cooking_name', isset($data['cooking_name']) ? $data['cooking_name'] : "", array('class' => 'uk-form-width-large', 'data-validation' => "required"));
    ?>
</div>
<?php 
Ejemplo n.º 6
0
    echo CHtml::hiddenField("redirect", Yii::app()->request->baseUrl . "/merchant/ingredients/Do/Add");
}
?>

<?php 
if (isset($_GET['id'])) {
    if (!($data = Yii::app()->functions->getIngredients($_GET['id']))) {
        echo "<div class=\"uk-alert uk-alert-danger\">" . Yii::t("default", "Sorry but we cannot find what your are looking for.") . "</div>";
        return;
    }
}
?>
                                 
<?php 
if (Yii::app()->functions->multipleField() == 2) {
    Widgets::multipleFields(array('ingredients name'), array('ingredients_name'), $data, array(true));
    ?>
<div class="spacer"></div>

<?php 
} else {
    ?>

<div class="uk-form-row">
  <label class="uk-form-label"><?php 
    echo Yii::t("default", "ingredients name");
    ?>
</label>
  <?php 
    echo CHtml::textField('ingredients_name', isset($data['ingredients_name']) ? $data['ingredients_name'] : "", array('class' => 'uk-form-width-large', 'data-validation' => "required"));
    ?>