function content_50aaa22335e9a6_53648703($_smarty_tpl) { if (!is_callable('smarty_function_load_presentation_object')) { include './presentation/smarty_plugins\\function.load_presentation_object.php'; } echo smarty_function_load_presentation_object(array('filename' => "admin_menu", 'assign' => "obj"), $_smarty_tpl); ?> <h1>TShirtShop Admin console</h1> <p> <a href="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mLinkToStoreAdmin; ?> ">CATALOG ADMIN</a> <a href="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mLinkToAttributesAdmin; ?> ">PRODUCTS ATTRIBUTES ADMIN</a> <a href="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mLinkToStoreFront; ?> ">STOREFRONT</a> <a href="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mLinkToLogout; ?> ">LOGOUT</a> </p><?php }
function content_50aaa220431114_61743042($_smarty_tpl) { if (!is_callable('smarty_function_load_presentation_object')) { include './presentation/smarty_plugins\\function.load_presentation_object.php'; } echo smarty_function_load_presentation_object(array('filename' => "admin_login", 'assign' => "obj"), $_smarty_tpl); ?> <div class="login"> <p class="login-title">TshirtShop Login</p> <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mLinkToAdmin; ?> "> <p> Enter login information or go back to <a href="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mLinkToIndex; ?> ">storefront</a> </p> <?php if ($_smarty_tpl->tpl_vars['obj']->value->mLoginMessage != '') { ?> <p class="error"><?php echo $_smarty_tpl->tpl_vars['obj']->value->mLoginMessage; ?> </p> <?php } ?> <p> <label for="username">Username:</label> <input type="text" name="username" size="35" value="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mUsername; ?> "/> </p> <p> <label for="password">Password:</label> <input type="text" name="password" size="35" value=""/> </p> <p> <input type="submit" name="submit" value="Login"/> </p> </form> </div><?php }
function content_50aaa21d9192e7_07566939($_smarty_tpl) { if (!is_callable('smarty_function_load_presentation_object')) { include './presentation/smarty_plugins\\function.load_presentation_object.php'; } echo smarty_function_load_presentation_object(array('filename' => "first_page_contents", 'assign' => "obj"), $_smarty_tpl); ?> <p class="description"> We hope you have fun developing TShirtShop... Это тестовый интернет-магазин. Нажимайте, проверяйте. </p> <p class="description"> We have the largest collection if t-shirts with postal stamps on Eearth! Browse our departments and categories to find your favorite! </p> <p>Access the <a href="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mLinkToAdmin; ?> ">Admin page</a></p> <?php echo $_smarty_tpl->getSubTemplate('products_list.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); }
function content_50aaa310224156_56316264($_smarty_tpl) { if (!is_callable('smarty_function_load_presentation_object')) { include './presentation/smarty_plugins\\function.load_presentation_object.php'; } echo smarty_function_load_presentation_object(array('filename' => "search_box", 'assign' => "obj"), $_smarty_tpl); ?> <div class="box"> <p class="box-title">Search the Catalog</p> <form class="search_form" method="post" action="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mLinkToSearch; ?> "> <p> <input maxlength="100" id="search_string" name="search_string" value="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mSearchString; ?> " size="19" /> <input type="submit" value="Go!" /><br /> </p> <p> <input type="checkbox" id="all_words" name="all_words" <?php if ($_smarty_tpl->tpl_vars['obj']->value->mAllWords == "on") { ?> checked="checked" <?php } ?> /> Search for all words </p> </form> </div> <?php }
function content_50aaa220363349_12834928($_smarty_tpl) { if (!is_callable('smarty_function_load_presentation_object')) { include './presentation/smarty_plugins\\function.load_presentation_object.php'; } echo smarty_function_load_presentation_object(array('filename' => "store_admin", 'assign' => "obj"), $_smarty_tpl); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Demo Store Admin from Beginning PHP and MySQL E-Commerce</title> <meta http-equiv="content-type" content="text/html" charset="UTF-8"/> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mSiteUrl; ?> styles/tshirtshop.css" type="text/css"> </head> <body> <div id="doc" class="yui-t7"> <div id="bd"> <div class="yui-g"> <?php echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['obj']->value->mMenuCell, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> </div> <div class="yui-g"> <?php echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['obj']->value->mContentsCell, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> </div> </div> </div> </body> </html><?php }
function content_50aaa858cb0c59_57958513($_smarty_tpl) { if (!is_callable('smarty_function_load_presentation_object')) { include './presentation/smarty_plugins\\function.load_presentation_object.php'; } echo smarty_function_load_presentation_object(array('filename' => "department", 'assign' => "obj"), $_smarty_tpl); ?> <h1 class='title'><?php echo $_smarty_tpl->tpl_vars['obj']->value->mName; ?> </h1> <p class="description"><?php echo $_smarty_tpl->tpl_vars['obj']->value->mDescription; ?> </p> <?php if ($_smarty_tpl->tpl_vars['obj']->value->mShowEditButton) { ?> <form action="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mEditActionTarget; ?> " method="post" class="edit-form"> <input type="submit" name="submit_<?php echo $_smarty_tpl->tpl_vars['obj']->value->mEditAction; ?> " value="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mEditButtonCaption; ?> " /> </form> <?php } echo $_smarty_tpl->getSubTemplate("products_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); }
function content_50aaa2234256b0_49428617($_smarty_tpl) { if (!is_callable('smarty_function_load_presentation_object')) { include './presentation/smarty_plugins\\function.load_presentation_object.php'; } echo smarty_function_load_presentation_object(array('filename' => "admin_departments", 'assign' => "obj"), $_smarty_tpl); ?> <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mLinkToDepartmentsAdmin; ?> "> <h3>Edit the departments of TShirtShop:</h3> <?php if ($_smarty_tpl->tpl_vars['obj']->value->mErrorMessage) { ?> <p class="error"><?php echo $_smarty_tpl->tpl_vars['obj']->value->mErrorMessage; ?> </p><?php } if ($_smarty_tpl->tpl_vars['obj']->value->mDepartmentsCount == 0) { ?> <p class="no-items-found">There are no departments in your database!</p> <?php } else { ?> <table class="tss-table"> <tr> <th width="200">Department Name</th> <th>Department Description</th> <th width="240"> </th> </tr> <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['i'])) { unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']); } $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i'; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['obj']->value->mDepartments) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] - 1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false; } } else { $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0; } if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) { for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++) { $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']; ?> <?php if ($_smarty_tpl->tpl_vars['obj']->value->mEditItem == $_smarty_tpl->tpl_vars['obj']->value->mDepartments[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['department_id']) { ?> <tr> <td> <input type="text" name="name" value="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mDepartments[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['name']; ?> " size="30" /> </td> <td> <textarea name="description" rows="3" cols="60"><?php echo $_smarty_tpl->tpl_vars['obj']->value->mDepartments[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['description']; ?> </textarea> </td> <td> <input type="submit" name="submit_edit_cat_<?php echo $_smarty_tpl->tpl_vars['obj']->value->mDepartments[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['department_id']; ?> " value="Edit Categories" /> <input type="submit" name="submit_update_dept_<?php echo $_smarty_tpl->tpl_vars['obj']->value->mDepartments[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['department_id']; ?> " value="Update" /> <input type="submit" name="cancel" value="Cancel" /> <input type="submit" name="submit_delete_dept_<?php echo $_smarty_tpl->tpl_vars['obj']->value->mDepartments[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['department_id']; ?> " value="Delete" /> </td> </tr> <?php } else { ?> <tr> <td><?php echo $_smarty_tpl->tpl_vars['obj']->value->mDepartments[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['name']; ?> </td> <td><?php echo $_smarty_tpl->tpl_vars['obj']->value->mDepartments[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['description']; ?> </td> <td> <input type="submit" name="submit_edit_cat_<?php echo $_smarty_tpl->tpl_vars['obj']->value->mDepartments[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['department_id']; ?> " value="Edit Categories" /> <input type="submit" name="submit_edit_dept_<?php echo $_smarty_tpl->tpl_vars['obj']->value->mDepartments[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['department_id']; ?> " value="Edit" /> <input type="submit" name="submit_delete_dept_<?php echo $_smarty_tpl->tpl_vars['obj']->value->mDepartments[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['department_id']; ?> " value="Delete" /> </td> </tr> <?php } ?> <?php } } ?> </table> <?php } ?> <h3>Add new department:</h3> <p> <input type="text" name="department_name" value="[name]" size="30" /> <input type="text" name="department_description" value="[description]" size="60" /> <input type="submit" name="submit_add_dept_0" value="Add" /> </p> </form> <?php }
function content_50aaa21dad5354_43262645($_smarty_tpl) { if (!is_callable('smarty_function_load_presentation_object')) { include './presentation/smarty_plugins\\function.load_presentation_object.php'; } echo smarty_function_load_presentation_object(array('filename' => "products_list", 'assign' => "obj"), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['obj']->value->mSearchDescription != '') { ?> <p class="description"><?php echo $_smarty_tpl->tpl_vars['obj']->value->mSearchDescription; ?> </p> <?php } if (count($_smarty_tpl->tpl_vars['obj']->value->mProductListPages) > 0) { ?> <p> <?php if ($_smarty_tpl->tpl_vars['obj']->value->mLinkToPreviousPage) { ?> <a href="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mLinkToPreviousPage; ?> ">Previous page</a> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['m'])) { unset($_smarty_tpl->tpl_vars['smarty']->value['section']['m']); } $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['name'] = 'm'; $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['obj']->value->mProductListPages) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['loop'] - 1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['m']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['m']['total'] == 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['show'] = false; } } else { $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['total'] = 0; } if ($_smarty_tpl->tpl_vars['smarty']->value['section']['m']['show']) { for ($_smarty_tpl->tpl_vars['smarty']->value['section']['m']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['iteration']++) { $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['iteration'] == 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['m']['total']; ?> <?php if ($_smarty_tpl->tpl_vars['obj']->value->mPage == $_smarty_tpl->getVariable('smarty')->value['section']['m']['index_next']) { ?> <strong><?php echo $_smarty_tpl->getVariable('smarty')->value['section']['m']['index_next']; ?> </strong> <?php } else { ?> <a href="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mProductListPages[$_smarty_tpl->getVariable('smarty')->value['section']['m']['index']]; ?> "><?php echo $_smarty_tpl->getVariable('smarty')->value['section']['m']['index_next']; ?> </a> <?php } ?> <?php } } ?> <?php if ($_smarty_tpl->tpl_vars['obj']->value->mLinkToNextPage) { ?> <a href="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mLinkToNextPage; ?> ">Next page</a> <?php } ?> </p> <?php } if ($_smarty_tpl->tpl_vars['obj']->value->mProducts) { ?> <table class="product-list" border="0"> <tbody> <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['k'])) { unset($_smarty_tpl->tpl_vars['smarty']->value['section']['k']); } $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['name'] = 'k'; $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['obj']->value->mProducts) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['loop'] - 1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['k']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['k']['total'] == 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['show'] = false; } } else { $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['total'] = 0; } if ($_smarty_tpl->tpl_vars['smarty']->value['section']['k']['show']) { for ($_smarty_tpl->tpl_vars['smarty']->value['section']['k']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['iteration']++) { $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['iteration'] == 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['k']['total']; ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['section']['k']['index'] % 2 == 0) { ?> <tr> <?php } ?> <td valign="top"> <h3 class="product-title"> <a href="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['link_to_product']; ?> "> <?php echo $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['name']; ?> </a> </h3> <p> <?php if ($_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['thumbnail'] != '') { ?> <a href="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['link_to_product']; ?> "> <img src="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['thumbnail']; ?> " alt="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['name']; ?> " /> </a> <?php } ?> <?php echo $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['description']; ?> </p> <p class="section"> Price: <?php if ($_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['discounted_price'] != 0) { ?> <span class="old-price"><?php echo $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['price']; ?> </span> <span class="price"><?php echo $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['discounted_price']; ?> </span> <?php } else { ?> <span class="price"><?php echo $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['price']; ?> </span> <?php } ?> руб. </p> <form class="add-product-form" target="_self" method="post" action="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['link_to_add_product']; ?> "> <p class="attributes"> <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['l'])) { unset($_smarty_tpl->tpl_vars['smarty']->value['section']['l']); } $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['name'] = 'l'; $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['attributes']) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['loop'] - 1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['l']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['l']['total'] == 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['show'] = false; } } else { $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['total'] = 0; } if ($_smarty_tpl->tpl_vars['smarty']->value['section']['l']['show']) { for ($_smarty_tpl->tpl_vars['smarty']->value['section']['l']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['iteration']++) { $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['iteration'] == 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['l']['total']; ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['section']['l']['first'] || $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['attributes'][$_smarty_tpl->getVariable('smarty')->value['section']['l']['index']]['attribute_name'] !== $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['attributes'][$_smarty_tpl->getVariable('smarty')->value['section']['l']['index_prev']]['attribute_name']) { ?> <?php echo $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['attributes'][$_smarty_tpl->getVariable('smarty')->value['section']['l']['index']]['attribute_name']; ?> : <select name="attr_<?php echo $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['attributes'][$_smarty_tpl->getVariable('smarty')->value['section']['l']['index']]['attribute_name']; ?> "> <?php } ?> <option value="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['attributes'][$_smarty_tpl->getVariable('smarty')->value['section']['l']['index']]['attribute_value']; ?> "> <?php echo $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['attributes'][$_smarty_tpl->getVariable('smarty')->value['section']['l']['index']]['attribute_value']; ?> </option> <?php if ($_smarty_tpl->getVariable('smarty')->value['section']['l']['last'] || $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['attributes'][$_smarty_tpl->getVariable('smarty')->value['section']['l']['index']]['attribute_name'] !== $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['attributes'][$_smarty_tpl->getVariable('smarty')->value['section']['l']['index_next']]['attribute_name']) { ?> </select> <?php } ?> <?php } } ?> </p> <p> <input type="submit" name="submit" value="Add to Cart" /> </p> </form> <?php if ($_smarty_tpl->tpl_vars['obj']->value->mShowEditButton) { ?> <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mEditActionTarget; ?> " target="_self" class="edit-form" > <input type="hidden" name="product_id" value="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mProducts[$_smarty_tpl->getVariable('smarty')->value['section']['k']['index']]['product_id']; ?> " /> <input type="submit" name="submit" value="Редактировать товар"/> </form> <?php } ?> </td> <?php if ($_smarty_tpl->getVariable('smarty')->value['section']['k']['index'] % 2 != 0 && !$_smarty_tpl->getVariable('smarty')->value['section']['k']['first'] || $_smarty_tpl->getVariable('smarty')->value['section']['k']['last']) { ?> </tr> <?php } ?> <?php } } ?> </tbody> </table> <?php } }
function content_50aaa21d7ba553_76691433($_smarty_tpl) { if (!is_callable('smarty_function_load_presentation_object')) { include './presentation/smarty_plugins\\function.load_presentation_object.php'; } $_config = new Smarty_Internal_Config("site.conf", $_smarty_tpl->smarty, $_smarty_tpl); $_config->loadConfigVars(null, 'local'); echo smarty_function_load_presentation_object(array('filename' => "store_front", 'assign' => "obj"), $_smarty_tpl); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title><?php echo $_smarty_tpl->tpl_vars['obj']->value->mPageTitle; ?> </title> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mSiteUrl; ?> styles/tshirtshop.css" type="text/css"> <script src="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mSiteUrl; ?> js/jquery.js" type="text/javascript"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mSiteUrl; ?> js/script1.js"></script> </head> <body class="yui-skin-sam"> <div id="doc" class="yui-t2"> <div id="bd"> <div id="yui-main"> <div class="yui-b"> <div id='header'class="yui-g"> <a href="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mSiteUrl; ?> "> <img src="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mSiteUrl; ?> images/images/title.png" alt="tshirtshop logo"/> </a> </div> <div id="contents" class="yui-g"> <?php echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['obj']->value->mContentsCell, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> </div> </div> </div> <div class="yui-b"> <?php echo $_smarty_tpl->getSubTemplate("search_box.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> <?php echo $_smarty_tpl->getSubTemplate("departments_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> <?php echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['obj']->value->mCategoriesCell, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> <?php echo $_smarty_tpl->getSubTemplate($_smarty_tpl->tpl_vars['obj']->value->mCartSummaryCell, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> </div> </div> <div id="ft" role="contentinfo">created by naOy</div> </div> </body> </html> <?php }
<?php /* Smarty version 2.6.28, created on 2014-08-10 08:16:32 compiled from departments_list.tpl */ require_once SMARTY_CORE_DIR . 'core.load_plugins.php'; smarty_core_load_plugins(array('plugins' => array(array('function', 'load_presentation_object', 'departments_list.tpl', 2, false))), $this); echo smarty_function_load_presentation_object(array('filename' => 'departments_list', 'assign' => 'obj'), $this); ?> <div class="box"> <p class="box-title">Choose a Department</p> <ul> <?php unset($this->_sections['i']); $this->_sections['i']['name'] = 'i'; $this->_sections['i']['loop'] = is_array($_loop = $this->_tpl_vars['obj']->mDepartments) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $this->_sections['i']['show'] = true; $this->_sections['i']['max'] = $this->_sections['i']['loop']; $this->_sections['i']['step'] = 1; $this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop'] - 1; if ($this->_sections['i']['show']) { $this->_sections['i']['total'] = $this->_sections['i']['loop']; if ($this->_sections['i']['total'] == 0) { $this->_sections['i']['show'] = false; } } else { $this->_sections['i']['total'] = 0; } if ($this->_sections['i']['show']) {
function content_50aaa858e11e09_38328905($_smarty_tpl) { if (!is_callable('smarty_function_load_presentation_object')) { include './presentation/smarty_plugins\\function.load_presentation_object.php'; } echo smarty_function_load_presentation_object(array('filename' => "categories_list", 'assign' => "obj"), $_smarty_tpl); ?> <div id='box_catergor' class="box"> <p class="box-title">Choose a Category</p> <ul> <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['i'])) { unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']); } $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i'; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['obj']->value->mCategories) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] - 1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false; } } else { $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0; } if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) { for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++) { $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']; ?> <?php $_smarty_tpl->tpl_vars['selected'] = new Smarty_variable('', null, 0); ?> <?php if ($_smarty_tpl->tpl_vars['obj']->value->mSelectedCategory == $_smarty_tpl->tpl_vars['obj']->value->mCategories[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['category_id']) { ?> <?php $_smarty_tpl->tpl_vars['selected'] = new Smarty_variable("class=\"selected\"", null, 0); ?> <?php } ?> <li> <a <?php echo $_smarty_tpl->tpl_vars['selected']->value; ?> href="<?php echo $_smarty_tpl->tpl_vars['obj']->value->mCategories[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['link_to_category']; ?> "><?php echo $_smarty_tpl->tpl_vars['obj']->value->mCategories[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['name']; ?> </a> </li> <?php } } ?> </ul> </div> <?php }
<?php /* Smarty version 2.6.28, created on 2014-09-17 12:53:11 compiled from product.tpl */ require_once SMARTY_CORE_DIR . 'core.load_plugins.php'; smarty_core_load_plugins(array('plugins' => array(array('function', 'load_presentation_object', 'product.tpl', 1, false), array('modifier', 'print_r', 'product.tpl', 29, false))), $this); echo smarty_function_load_presentation_object(array('filename' => 'product', 'assign' => 'obj'), $this); ?> <h1 class="title"><?php echo $this->_tpl_vars['obj']->mProduct['name']; ?> </h1> <?php if ($this->_tpl_vars['obj']->mProduct['image']) { ?> <img class="product-image" src="<?php echo $this->_tpl_vars['obj']->mProduct['image']; ?> " alt="<?php echo $this->_tpl_vars['obj']->mProduct['name']; ?> image" /> <?php } if ($this->_tpl_vars['obj']->mProduct['image_2']) { ?> <img class="product-image" src="<?php echo $this->_tpl_vars['obj']->mProduct['image_2'];