Пример #1
0
            }
            ?>
							</div>
					<?php 
        }
        ?>
					<?php 
        if ($value['data_type_id'] == 6) {
            ?>
						<div style="border: 1px solid #CECECE; padding: 5px; margin-bottom: 5px;">
							<label><strong><?php 
            echo $value['title'];
            ?>
</strong></label>
							<?php 
            $params_values = ModuleList3ParamsValues::model()->getList($value['id']);
            $i = 0;
            foreach ($params_values as $key2 => $value2) {
                $i++;
                ?>
								<div class="edit_line checkboxLine">
									<input id="ytModuleList3Values_<?php 
                echo $value['code'];
                echo $value2['id'];
                ?>
" type="hidden" value="0" name="ModuleList3Values[<?php 
                echo $value['id'];
                ?>
][<?php 
                echo $i;
                ?>
Пример #2
0
 public function actionDelete_value($page_id = null, $param_id = null, $id = null)
 {
     if (!is_null($page_id) && Pages::model()->existsPage($page_id)) {
         $mpage_id = ModulesInPages::model()->getLink((int) $page_id, $this->module->id);
         if ($mpage_id == 5) {
             $mpage_id = 4;
         }
         if ($mpage_id == 54) {
             $mpage_id = 4;
         }
         if ($mpage_id == 56) {
             $mpage_id = 4;
         }
         if ($mpage_id == 58) {
             $mpage_id = 4;
         }
         if (ModuleList3Params::model()->existsItem($mpage_id, $param_id) && ModuleList3ParamsValues::model()->deleteItem($param_id, $id)) {
             Yii::app()->user->setFlash($this->module->id . '_delete_message', '<p style="color:green;">Удалено</p>');
         } else {
             Yii::app()->user->setFlash($this->module->id . '_delete_message', '<p style="color:red;">Ошибка удаления</p>');
         }
         $this->redirect(Yii::app()->baseUrl . '?r=' . $this->module->id . '/params/update&page_id=' . $page_id . '&id=' . $param_id);
     } else {
         $this->redirect(Yii::app()->request->scriptUrl);
     }
 }
Пример #3
0
        ?>
											</td>
										</tr>
										<?php 
    }
    ?>
									<?php 
}
?>

									<?php 
$param = ModuleList3Params::model()->getItem(21);
if ($param->data_type_id == 6) {
    ?>
											<?php 
    $params_values = ModuleList3ParamsValues::model()->getList($param->id);
    foreach ($params_values as $key => $value) {
        $exist_params_values = ModuleList3Values::model()->exist_value($item->id, $param->id, $value->id);
        ?>
												<tr>
													<td><?php 
        echo $value->title;
        ?>
</td>
													<td>
														<?php 
        if ($exist_params_values) {
            ?>
															<i class="icon icon-positive"></i>
														<?php 
        } else {
Пример #4
0
        ?>
											</td>
										</tr>
										<?php 
    }
    ?>
									<?php 
}
?>
								</tbody>
							</table>
						</aside><!-- .filter-list-aside -->
						<?php 
$param_21 = ModuleList3Params::model()->getItem(21);
if ($param_21->data_type_id == 6) {
    $params_values_21 = ModuleList3ParamsValues::model()->getList($param_21->id);
}
?>
						<div class="ovf">
							<table class="scrollTable" id="TableL">
								<tr data-id="-1" class="js-FilterHead">
									<?php 
/*<th>Валюта карты</th>*/
?>
									<th>Стоимость годового обслуж.</th>
									<?php 
$param_21 = ModuleList3Params::model()->getItem(21);
if ($param_21->data_type_id == 6) {
    ?>
											<?php 
    foreach ($params_values_21 as $key => $value) {