<?php // Модуль оформления заказа. // Задачи: // * Полностью нахуй переделать. // general todo: // * Реализовать первую задачу; // 6.10.2015 // Find a way to avoid this: $self = SysApplication::getCurrentPage(); $path = 'module/' . $self->id . '/' . $self->id . '_manager.php'; if (file_exists($path)) { require_once $path; } // 'cause this shit is the same for all the managers using modules. $index = SysApplication::getPageIndexByName($self->name); // Generaly, the shit below is the only shit that should be here: ?> <input type="hidden" id="shop_id" value="<?php echo $_SESSION['shop_id']; ?> "> <script src="../js/react/react.js"></script> <script src="../js/react/JSXTransformer.js"></script> <script type="text/jsx" src="module/order/orderHandling.jsx"></script> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script> <div class="menu-block"> <div id="tooltip">
<?php $index = SysApplication::getPageIndexByName('По карте'); $index1 = SysApplication::getPageIndexByName('Закупка'); ?> <h3 class="main-title">Заказ</h3><br> <div style="border-top: 1px #ebae08 solid; border-bottom: 1px #ebae08 solid; margin-top: 20px; padding: 20px; overflow-y: scroll;"> <a href="<?php echo "?page={$index}"; ?> "> <div class="div-like-li"> <span style='margin-left: auto; margin-right: auto; display: inline;'>По карте</span> </div> </a> <a href="<?php echo "?page={$index1}"; ?> "> <div class="div-like-li"> <span style='margin-left: auto; margin-right: auto; display: inline;'>Закупка</span> </div> </a> </div> <div class="clear"></div> <br> <h3 class="main-title">Новости</h3>
foreach ($shops as $value) { echo "<option value='" . $value['id'] . "'"; if ($waycup->getCurrentShop() == $value['id']) { echo ' selected'; } echo ">" . $value['name'] . "</option>"; } if (!$waycup->getCurrentShop()) { echo '<option value="false" selected>НЕ ВЫБРАНА</option>'; } ?> </select> </label> </form> </div></li> <li><a href="?page=<?php echo SysApplication::getPageIndexByName('Профиль'); ?> ">Профиль</a></li> <li><a href="../login/logout.php">Выйти</a></li> </ul> <input type='hidden' id='barista_id' value=<?php echo $_SESSION['userID']; ?> > </div> </div> </div> </div> <div class="container main-block"> <div class="row">