include PAGEPATH . 'admin.update_preview.php'; return; } vmCommonHTML::loadMooTools(); require_once CLASSPATH . 'update.class.php'; if (!empty($_SESSION['vmLatestVersion']) && version_compare($VMVERSION->RELEASE, $_SESSION['vmLatestVersion']) === -1) { $checkbutton_style = 'display:none;'; $downloadbutton_style = ''; } else { $checkbutton_style = ''; $downloadbutton_style = 'display:none;'; } $formObj = new formFactory($VM_LANG->_('VM_UPDATE_CHECK_LBL')); $formObj->startForm('adminForm', 'enctype="multipart/form-data"'); vmUpdate::stepBar(1); $tabs = new vmTabPanel(0, 0, 'versionCheck'); $tabs->startPane('versionCheckPane'); $tabs->startTab($VM_LANG->_('VM_UPDATE_CHECK_LBL'), 'update_check'); ?> <table class="adminlist"> <tr> <th class="title"><?php echo $VM_LANG->_('VM_UPDATE_CHECK_VERSION_INSTALLED'); ?> </th> <th class="title"><?php echo $VM_LANG->_('VM_UPDATE_CHECK_LATEST_VERSION'); ?> </th> </tr> <tr>
$fieldname = 'group_id'; if ($_VERSION->PRODUCT == 'Joomla!' && $_VERSION->RELEASE >= 1.5) { $fieldname = 'id'; } $db->query('SELECT `' . $fieldname . '` FROM #__core_acl_aro_groups WHERE name=\'' . VM_PRICE_ACCESS_LEVEL . '\''); $db->next_record(); $gtree = $acl->get_group_children_tree(null, 'USERS', false); $access_group_list = vmCommonHTML::selectList($gtree, 'conf_VM_PRICE_ACCESS_LEVEL', 'size="4"', 'value', 'text', $db->f($fieldname), true); $title = ' <img src="' . VM_THEMEURL . 'images/administration/header/icon-48-config.png" align="middle" border="0" alt="' . $VM_LANG->_('PHPSHOP_CONFIG') . '" /> '; $title .= $VM_LANG->_('PHPSHOP_CONFIG'); //First create the object and let it print a form heading $formObj =& new formFactory($title); //Then Start the form $formObj->startForm(); $ps_html->writableIndicator($mosConfig_absolute_path . '/administrator/components/com_virtuemart/virtuemart.cfg.php'); $tabs = new vmTabPanel(1, 1, "vmconfiguration"); $tabs->startPane("content-pane"); $tabs->startTab($VM_LANG->_('PHPSHOP_ADMIN_CFG_GLOBAL'), "global-page"); ?> <br /> <table class="adminlist"><tr><td> <fieldset style="width:48%;float:left;"> <legend><?php echo $VM_LANG->_('PHPSHOP_ADMIN_CFG_GLOBAL'); ?> </legend> <table class="adminform"> <tr> <td class="labelcell"> <label for="conf_PSHOP_IS_OFFLINE"><?php
$params = $user->getParameters(true); } elseif (file_exists($mosConfig_absolute_path . '/administrator/components/com_users/users.class.php')) { require_once $mosConfig_absolute_path . '/administrator/components/com_users/users.class.php'; $file = $mainframe->getPath('com_xml', 'com_users'); $params = new mosUserParameters($row->params, $file, 'component'); } // Set the last visit date $lvisit = $row->lastvisitDate; if ($lvisit == "0000-00-00 00:00:00") { $lvisit = '***' . $VM_LANG->_('VM_USER_FORM_LASTVISIT_NEVER'); } //First create the object and let it print a form heading $formObj = new formFactory(vmCommonHTML::imageTag(VM_THEMEURL . 'images/administration/header/icon-48-user.png', 'User Icon', 'absmiddle') . ' ' . $VM_LANG->_('PHPSHOP_USER_FORM_LBL')); //Then Start the form $formObj->startForm(); $tabs = new vmTabPanel(0, 1, "userform"); $tabs->startPane("userform-pane"); $tabs->startTab($VM_LANG->_('VM_USER_FORM_TAB_GENERALINFO'), "userform-page"); ?> <script language="javascript" type="text/javascript"> function gotocontact( id ) { var form = document.adminForm; form.target = "_parent"; form.contact_id.value = id; form.option.value = 'com_users'; submitform( 'contact' ); } </script> <fieldset class="adminform"> <legend><?php
* http://virtuemart.net */ mm_showMyFileName(__FILE__); global $page, $last_page, $error, $database, $funcParams, $pagePermissionsOK, $_VERSION; $return_to_page = vmGet($_REQUEST, 'return_to_page'); $i = 0; if (!empty($database->_log)) { foreach ($database->_log as $sql) { if (strstr($sql, "_{vm}_") || strstr($sql, "'BT'") || strstr($sql, "first_name")) { $i++; } } } echo '<br style="clear:both;" />'; include_once ADMINPATH . "version.php"; $tabs = new vmTabPanel(1, 1, "debugpanel"); $tabs->startPane("debug-pane"); $tabs->startTab("Shop Core Variables", "shop-variables"); ?> <table width="100%" border="0" cellspacing="5" cellpadding="2" > <tr class="sectiontableheader" nowrap> <th colspan="4" align="center"> <h3>DEBUG CENTER</h3> <?php echo "Version: {$myVersion}"; ?> </th> </tr> <tr class="sectiontableentry1"> <td align="right"><b>RunTime:</b></td>
" /> <input type="hidden" name="page" value="order.order_print" /> <input type="hidden" name="func" value="resendconfirm" /> <input type="hidden" name="option" value="com_virtuemart" /> <input type="hidden" name="order_id" value="<?php echo $order_id; ?> " /> </form> </td> </tr> </table> </td> <td valign="top"> <?php $tab = new vmTabPanel(1, 1, "orderstatuspanel"); $tab->startPane("order_change_pane"); $tab->startTab($VM_LANG->_('PHPSHOP_ORDER_STATUS_CHANGE'), "order_change_page"); ?> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?> "> <table class="adminform"> <tr> <th colspan="2"><?php echo $VM_LANG->_('PHPSHOP_ORDER_STATUS_CHANGE'); ?> </th> </tr> <tr>
<?php //First create the object and let it print a form heading $formObj = new formFactory($VM_LANG->_('PHPSHOP_VENDOR_FORM_LBL')); //Then Start the form $formObj->startForm('adminForm', 'enctype="multipart/form-data"'); $option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option; $vendor_id = vmGet($_REQUEST, 'vendor_id'); if (!empty($vendor_id)) { $q = "SELECT * FROM #__{vm}_vendor WHERE vendor_id='{$vendor_id}'"; $db->query($q); $db->next_record(); } elseif (!isset($vars["error"])) { $default["vendor_currency"] = $_SESSION['vendor_currency']; } /* Build up the Tabs */ $tabs = new vmTabPanel(0, 1, "vendorform"); $tabs->startPane("content-pane"); $tabs->startTab($VM_LANG->_('PHPSHOP_STORE_MOD'), "info-page"); ?> <table class="adminform"> <tr> <td><strong><?php echo $VM_LANG->_('PHPSHOP_VENDOR_FORM_INFO_LBL'); ?> </strong></td> <td> </td> </tr> <tr> <td align="right" ><?php echo $VM_LANG->_('PHPSHOP_VENDOR_FORM_FULL_IMAGE');
if ($db->f("payment_class")) { if (include_once CLASSPATH . "payment/" . $db->f("payment_class") . ".php") { eval("\$_PAYMENT = new " . $db->f("payment_class") . "();"); } } else { include CLASSPATH . "payment/ps_payment.php"; $_PAYMENT = new ps_payment(); } //First create the object and let it print a form heading $formObj = new formFactory($VM_LANG->_('PHPSHOP_PAYMENT_METHOD_FORM_LBL')); //Then Start the form $formObj->startForm(); ?> <br /> <?php $tabs = new vmTabPanel(0, 1, "paymentform"); $tabs->startPane("content-pane"); $tabs->startTab($VM_LANG->_('PHPSHOP_PAYMENT_METHOD_FORM_LBL'), "global-page"); ?> <table class="adminform"> <tr class="row0"> <td class="labelcell"><?php echo $VM_LANG->_('PHPSHOP_ISSHIP_LIST_PUBLISH_LBL'); ?> ?:</td> <td><input type="checkbox" name="payment_enabled" class="inputbox" value="Y" <?php echo $db->sf("payment_enabled") == "Y" ? "checked=\"checked\"" : ""; ?> /></td> </tr> <tr class="row1">
?> " target="_blank"> <?php echo $VM_LANG->_('PHPSHOP_PRODUCT_FORM_SHOW_FLYPAGE'); ?> </a> <?php } elseif (!empty($product_parent_id)) { $parent_product_name = $ps_product->get_field($product_parent_id, 'product_name'); $title .= ' :: <a href="' . $sess->url($_SERVER['PHP_SELF'] . '?page=product.product_form&product_id=' . $product_parent_id) . '">' . $parent_product_name . '</a>'; } //First create the object and let it print a form heading $formObj = new formFactory($title); //Then Start the form $formObj->startForm('adminForm', 'enctype="multipart/form-data"'); $tabs = new vmTabPanel(0, 1, "productform"); $tabs->startPane("content-pane"); $tabs->startTab($info_label, "info-page"); ?> <table class="adminform"> <tr> <td valign="top"> <table width="100%" border="0"> <tr> <td align="left" colspan="2"><?php echo "<h2 >{$info_label}</h2>"; ?> </td> </tr> <tr class="row0"> <td width="21%" ><div style="text-align:right;font-weight:bold;">
if ($db->f("export_class")) { if (include_once CLASSPATH . "export/" . $db->f("export_class") . ".php") { eval("\$_EXPORT = new " . $db->f("export_class") . "();"); } } else { include_once CLASSPATH . "export/ps_xmlexport.php"; $_EXPORT = new ps_xmlexport(); } //First create the object and let it print a form heading $formObj =& new formFactory($VM_LANG->_('VM_EXPORT_MODULE_FORM_LBL')); //Then Start the form $formObj->startForm(); ?> <br /> <?php $tabs = new vmTabPanel(0, 1, 'exportform'); $tabs->startPane('content-pane'); $tabs->startTab($VM_LANG->_('VM_EXPORT_MODULE_FORM_LBL'), 'global-page'); ?> <table class="adminform"> <tr class="row0"> <td class="labelcell"><?php echo $VM_LANG->_('PHPSHOP_ISSHIP_LIST_PUBLISH_LBL'); ?> ?:</td> <td><input type="checkbox" name="export_enabled" class="inputbox" value="Y" <?php echo $db->sf('export_enabled') == "Y" ? "checked=\"checked\"" : ""; ?> /></td> </tr> <tr class="row1">
</tr> <?php } ?> <?php $ps_order_change_html->html_change_bill_to($user_id); ?> </table> </td> <td valign="top" style="width: 500px"> <?php // Get Ship To Address $dbt->next_record(); ?> <?php $tab2 = new vmTabPanel(1, 1, "orderaddresspanel"); $tab2->startPane("order_change_address"); $tab2->startTab('Оригинальные данные', "order_origin_address_page"); ?> <div> <?php //echo '<pre>'; $orig_data = json_decode($dbt->record[0]->origdata, true); //print_r($orig_data); //echo '</pre>'; ?> <table class="orig_user_info"> <tr> <td class="orig_user_info_l">ФИО:</td> <td class="orig_user_info_r"><?php echo $orig_data['first_name'];
$formObj = new formFactory($VM_LANG->_('PHPSHOP_CATEGORY_FORM_LBL')); //Then Start the form $formObj->startForm('adminForm', 'enctype="multipart/form-data"'); if ($category_id) { $q = "SELECT * FROM #__{vm}_category,#__{vm}_category_xref "; $q .= "WHERE #__{vm}_category.category_id='{$category_id}' "; $q .= "AND #__{vm}_category_xref.category_child_id=#__{vm}_category.category_id"; $db->query($q); $db->next_record(); } elseif (empty($vars["error"])) { $default["category_publish"] = "Y"; $default["category_flypage"] = FLYPAGE; $default["category_browsepage"] = CATEGORY_TEMPLATE; $default["products_per_row"] = PRODUCTS_PER_ROW; } $tabs = new vmTabPanel(0, 1, "categoryform"); $tabs->startPane("category-pane"); $tabs->startTab("<img src='" . IMAGEURL . "ps_image/edit.png' align='absmiddle' width='16' height='16' border='0' /> " . $VM_LANG->_('PHPSHOP_CATEGORY_FORM_LBL'), "info-page"); ?> <table class="adminform"> <tr> <td width="21%" nowrap><div align="right"><?php echo $VM_LANG->_('PHPSHOP_CATEGORY_FORM_PUBLISH'); ?> :</div></td> <td width="79%"><?php if ($db->sf("category_publish") == "Y") { echo "<input type=\"checkbox\" name=\"category_publish\" value=\"Y\" checked=\"checked\" />"; } else { echo "<input type=\"checkbox\" name=\"category_publish\" value=\"Y\" />";
$order_status_code[] = $db_order_status->f("order_status_code"); $sum += $db->f('num_rows'); } // last 5 new customers $new_customers = array(); $db->query('SELECT id,first_name, last_name, username FROM #__users, #__{vm}_user_info WHERE address_type = \'BT\' AND perms <> \'admin\' AND perms <> \'storeadmin\' AND INSTR(usertype,\'administrator\') = 0 AND INSTR(usertype,\'Administrator\') = 0 AND id = user_id ORDER BY cdate DESC LIMIT 5'); while ($db->next_record()) { $new_customers[$db->f("id")] = $db->f('username') . " (" . $db->f('first_name') . " " . $db->f('last_name') . ")"; } $tabs = new vmTabPanel(1, 1, "dashboard"); $tabs->startPane("content-pane"); $tabs->startTab($VM_LANG->_('PHPSHOP_CONTROL_PANEL'), 'control-panel'); ?> <div class="header"> <h2><img src="<?php echo VM_THEMEURL; ?> images/administration/dashboard/store.png" align="middle" alt="Desktop" border="0" /> <?php echo $VM_LANG->_('PHPSHOP_YOUR_STORE') . "::" . $VM_LANG->_('PHPSHOP_CONTROL_PANEL'); ?> </h2> </div> <br style="clear:both;" />