code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231 values | license stringclasses 13 values | size int64 1 2.01M |
|---|---|---|---|---|---|
<?php
include_once("../configure/admin.config.inc.php"); //--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Smarty.class.php"); //--> out template
include_once("Message.php"); //--> Message
include_once("Operation.php"); //--> Operation
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation(); //--> Operation
$objMessage = new Message($uid); //--> Message
$error_message = '';
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
$arrMessage = $objMessage->getFromID($arrOperate, $id);
if(is_array($arrMessage)){
$strTitle = $arrMessage['title'];
$strContent = $arrMessage['content'];
//$strContent = str_replace(" ", " ", str_replace("\n", "<br>", $$arrInfo['content']));
$objMessage->editStatus($arrOperate, $id);
}
/*----- out html -----*/
$smarty = new Smarty(); //----- out template
$smarty->template_dir = TEMPLATE_SYS_DIR;
$smarty->compile_dir = CACHE_SYS_DIR;
$smarty->assign('error_message', $error_message);
$smarty->assign('menuGid', $menuGid);
$smarty->assign('menuid', $menuid);
$smarty->assign('backurl',$backurl);
$smarty->assign('title', $strTitle);
$smarty->assign('content', $strContent);
$smarty->display('listMessage_View.htm');
?>
| 123gohelmetsv2 | trunk/admin/message/listMessage_View.php | PHP | asf20 | 1,299 |
<?php
include_once("../configure/admin.config.inc.php"); //--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Smarty.class.php"); //--> out template
include_once("Operation.php"); //--> Operation
include_once("Manufacturer.php"); //--> Manufacturer
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation($objSession->getLanguage()); //--> Operation
$objManufacturer = new Manufacturer(DB_TAG_SYSTEM, $uid); //--> Manufacturer
$error_message = '';
$name = '';
$strOldName = '';
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(!empty($id)){
$arrData = $objManufacturer->getFromID($arrOperate, $id);
$strOldName = $arrData['name'];
$url = $arrData['URL'];
$name = $strOldName;
}
if(isset($_POST['Submit'])){
$id = $_POST['id'];
$name = $_POST['name'];
$url = $_POST['url'];
if(empty($name))
$error_message = 'The manufacturer name should\'t be empty.';
else if($objManufacturer->IsExistName($LANGEUAGE_ID, $name) && $strOldName != $name){
$error_message = 'the manufacturer name be existed.';
}
if(empty($error_message)){
$isReturnOrg = $objManufacturer->edit($arrOperate, $id, $name, $url);
if($isReturnOrg)
$error_message = 'edit successfully.';
else{
$error_message = 'edit failure1.';
}
}
}
/*----- out html -----*/
$smarty = new Smarty(); //----- out template
$smarty->template_dir = TEMPLATE_SYS_DIR;
$smarty->compile_dir = COMPILE_SYS_DIR;
$smarty->assign('menuGid', $menuGid);
$smarty->assign('menuid', $menuid);
$smarty->assign('id', $id);
$smarty->assign('error_message', $error_message);
$smarty->assign('backurl',$backurl);
$smarty->assign('name', $name);
$smarty->assign('url', $url);
$smarty->display('listManufacturer_Edit.htm');
?>
| 123gohelmetsv2 | trunk/admin/manufacturer/listManufacturer_Edit.php | PHP | asf20 | 1,841 |
<?php
include_once("../configure/admin.config.inc.php"); //--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Smarty.class.php"); //--> out template
include_once("Manufacturer.php"); //--> Manufacturer
include_once("Operation.php"); //--> Operation
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation(); //--> Operation
$objManufacturer = new Manufacturer(DB_TAG_SYSTEM, $uid); //--> Manufacturer
$error_message = '';
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
$arrMerInfo = $objManufacturer->getFromID($arrOperate, $id);
/*----- out html -----*/
$smarty = new Smarty(); //----- out template
$smarty->template_dir = TEMPLATE_SYS_DIR;
$smarty->compile_dir = CACHE_SYS_DIR;
$smarty->assign('error_message', $error_message);
$smarty->assign('menuGid', $menuGid);
$smarty->assign('menuid', $menuid);
$smarty->assign('backurl',$backurl);
$smarty->assign('arrMerInfo', $arrMerInfo);
//$smarty->assign('content', $strContent);
$smarty->display('listManufacturer_View.htm');
?>
| 123gohelmetsv2 | trunk/admin/manufacturer/listManufacturer_View.php | PHP | asf20 | 1,115 |
<?php
include_once("../configure/admin.config.inc.php");//--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Operation.php"); //--> Operation
include_once("Manufacturer.php"); //--> Manufacturer
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation($objSession->getLanguage()); //--> Operation instance
$objManufacturer = new Manufacturer(DB_TAG_SYSTEM, $uid); //--> Manufacturer
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(isset($_GET['id']) && !empty($_GET['id'])){
$id = $_GET['id'];
$isReturn = $objManufacturer->delete($arrOperate, $id);
if($isReturn)
$error_message = 'delete successfully.';
else
$error_message = 'delete failure.';
}
echo "<script language='javascript'>";
echo "alert(\"$error_message\");";
echo "location.href=\"".$_SERVER['HTTP_REFERER']."\";";
echo "</script>";
//$backurl = $_SERVER['HTTP_REFERER'];
//header("Location: $backurl");
?>
| 123gohelmetsv2 | trunk/admin/manufacturer/listManufacturer_Delete.php | PHP | asf20 | 1,011 |
<?php
include_once("../configure/admin.config.inc.php"); //--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Smarty.class.php"); //--> out template
include_once("Operation.php"); //--> Operation
include_once("Manufacturer.php"); //--> Manufacturer
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation($objSession->getLanguage()); //--> Operation
$objManufacturer = new Manufacturer(DB_TAG_SYSTEM, $uid); //--> Manufacturer
$error_message = '';
$strName = '';
$url = '';
$summary = '';
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(isset($_POST['Submit'])){
$name = $_POST['name'];
$url = $_POST['url'];
if(empty($name)){
$error_message = 'The manufacturer name should\'t be empty.';
}else if($objManufacturer->IsExistName($LANGEUAGE_ID, $name)){
$error_message = 'the manufacturer name be existed.';
}else{
$isReturnOrg = $objManufacturer->add($arrOperate, $LANGEUAGE_ID, $name, $url);
if($isReturnOrg)
$error_message = 'add successfully.';
else{
$error_message = 'add failure.';
}
}
}
/*----- out html -----*/
$smarty = new Smarty(); //----- out template
$smarty->template_dir = TEMPLATE_SYS_DIR;
$smarty->compile_dir = COMPILE_SYS_DIR;
$smarty->assign('menuGid', $menuGid);
$smarty->assign('menuid', $menuid);
$smarty->assign('error_message', $error_message);
$smarty->assign('backurl',$backurl);
$smarty->assign('name', $name);
$smarty->assign('url', $url);
$smarty->display('listManufacturer_Add.htm');
?>
| 123gohelmetsv2 | trunk/admin/manufacturer/listManufacturer_Add.php | PHP | asf20 | 1,589 |
<?php
include_once("../configure/admin.config.inc.php"); //--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Smarty.class.php"); //--> out template
include_once("Operation.php"); //--> Operation
include_once("Manufacturer.php"); //--> Manufacturer
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation($objSession->getLanguage()); //--> Operation
$oManufacturer = new Manufacturer(DB_TAG_SYSTEM, $uid); //--> Manufacturer
$error_message = '';
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(count($arrOperate) > 0){
$strQuery = $_SERVER["REQUEST_URI"];
$arrUrlInfo = pathinfo($strQuery);
$selfFileName = $arrUrlInfo['filename'];
$arrOperateAllInfo = $objOperate->listFromCustom($arrOperate, " WHERE id in (".implode(",", $arrOperate).") AND name != 'Add'");
$i = 0;
foreach($arrOperateAllInfo as $key => $value){
$strFileName = $selfFileName."_".$value['name'].".php";
if(file_exists($strFileName)){
$arrOperateInfo[$i]['name'] = $value['name'];
$arrOperateInfo[$i]['viewName'] = $value['name'];
$i++;
}
}
}
$arrDataList = $oManufacturer->lists($arrOperate, " WHERE languageID = $LANGEUAGE_ID ORDER BY id DESC", $page, DISPLAY_DATA_SIZE, '');
/*----- out html -----*/
$smarty = new Smarty(); //----- out template
$smarty->template_dir = TEMPLATE_SYS_DIR;
$smarty->compile_dir = COMPILE_SYS_DIR;
$smarty->assign('error_message', $error_message);
$smarty->assign('menuGid', $menuGid);
$smarty->assign('menuid', $menuid);
$smarty->assign('selfFileName', $selfFileName);
$smarty->assign('arrOperateInfo', $arrOperateInfo);
$smarty->assign('arrDataList', $arrDataList);
$smarty->assign('PAGE_BAR', $oManufacturer->pagenav);
$smarty->display('listManufacturer.htm');
?>
| 123gohelmetsv2 | trunk/admin/manufacturer/listManufacturer.php | PHP | asf20 | 1,838 |
<?php
include_once("../configure/admin.config.inc.php"); //--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Smarty.class.php"); //--> out template
include_once("Product.php"); //--> Merchant
include_once("Operation.php"); //--> Operation
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation(); //--> Operation
$objProduct = new Product(DB_TAG_SYSTEM, $uid); //--> Product
$error_message = '';
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(isset($_GET['backurl_base64']))
$backurl = base64_decode($_GET['backurl_base64']);
if(isset($_GET['action']))
$action = $_GET['action'];
if($action == 'delete'){
$relatedid = $_GET['relatedid'];
$objProduct->update(DB_TAG_PUBLIC, "DELETE FROM products_related WHERE id = $relatedid");
}
if(isset($_POST['Submit'])){
$productID = $_POST['productID'];
$relatedClassID = $_POST['relatedClassID'];
$objProduct->update(DB_TAG_PUBLIC, "INSERT INTO products_related SET type = $relatedClassID, productID = $id, relatedProdID = $productID ON DUPLICATE KEY UPDATE relatedProdID = VALUES(relatedProdID)");
}
$sql = "SELECT id, name FROM products_related_class";
$arrRelated_class = $objProduct->getHash(DB_TAG_PUBLIC, $sql);
$sql = "SELECT pr.id, pr.relatedProdID, pd.name FROM products_related pr, products_description pd WHERE pr.type = 1 AND pr.relatedProdID = pd.productID AND pr.productID = $id";
$arrRelated = $objProduct->getAllData(DB_TAG_PUBLIC, $sql);
$arrProducts = array();
$where = ' AND p.status = "normal"';
$order = ' ORDER BY pd.name';
$arrDataList = $objProduct->lists($arrOperate, $LANGEUAGE_ID, $where, $order, 0, 10000, '');
foreach($arrDataList as $arrRow){
$arrProducts[$arrRow['id']] = $arrRow['name'] . " ($CURRENCY" . ($arrRow['price'] / 100) . ')';
}
/*----- out html -----*/
$smarty = new Smarty(); //----- out template
$smarty->template_dir = TEMPLATE_SYS_DIR;
$smarty->compile_dir = CACHE_SYS_DIR;
$smarty->assign('error_message', $error_message);
$smarty->assign('menuGid', $menuGid);
$smarty->assign('menuid', $menuid);
$smarty->assign('id',$id);
$smarty->assign('backurl',$backurl);
$smarty->assign('backurl_base64',base64_encode($backurl));
$smarty->assign('arrRelated_class', $arrRelated_class);
$smarty->assign('arrRelated', $arrRelated);
$smarty->assign('arrProducts', $arrProducts);
$smarty->display('listProduct_Related.htm');
?>
| 123gohelmetsv2 | trunk/admin/product/listProduct_Related.php | PHP | asf20 | 2,480 |
<?php
include_once("../configure/admin.config.inc.php");//--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Product.php"); //--> Product
include_once("Operation.php"); //--> Operation
require_once("controlHeader.php"); //--> system control header
$objProduct = new Product(DB_TAG_PUBLIC, $uid); //--> Product
$objOperate = new Operation($objSession->getLanguage()); //--> Operation instance
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(isset($_GET['id']) && !empty($_GET['id'])){
$id = $_GET['id'];
$isReturn = $objProduct->setStatus($arrOperate, $id, "hot");
if($isReturn){
$error_message = 'Set hot product successfully.';
}else
$error_message = 'Set hot product failure.';
}
echo "<script language='javascript'>";
echo "alert(\"$error_message\");";
echo "location.href=\"".$_SERVER['HTTP_REFERER']."\";";
echo "</script>";
//$backurl = $_SERVER['HTTP_REFERER'];
//header("Location: $backurl");
?>
| 123gohelmetsv2 | trunk/admin/product/listProduct_Hot.php | PHP | asf20 | 1,014 |
<?php
include_once("../configure/admin.config.inc.php"); //--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Smarty.class.php"); //--> out template
include_once("Operation.php"); //--> Operation
include_once("Product.php"); //--> Product
include_once("CSVFileParser.php"); //--> CSVFileParser
include_once("Files.php"); //--> Files
include_once("UploadFiles.php"); //--> UploadFiles
include_once("Files.php"); //--> Files
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation($objSession->getLanguage()); //--> Operation
$oProduct = new Product(DB_TAG_PUBLIC, $uid); //--> Product
$oFiles = new Files(); //--> CSVFileParser
$oCSVParser = new CSVFileParser(); //--> CSVFileParser
$objUploadFiles = new UploadFiles(DB_TAG_PUBLIC, $uid); //--> UploadFiles
$objFiles = new Files(DB_TAG_PUBLIC, $uid); //--> Files
$arrCheckResult = array();
$arrAllRelatedNew = array();
$arrRelatedPNamePID = array();
$error_message = '';
$batchFile = '';
$checkOK = 'yes';
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
$arrProducts = array();
$sql = "SELECT name, productID FROM products_description";
$arrAllProducts = $oProduct->getHash(DB_TAG_PUBLIC, $sql);
foreach($arrAllProducts as $key => $value){
$arrProducts[ strtolower($key)] =$value;
}
if(isset($_POST['Submit'])){
if(isset($_FILES['batchFile']['name'])){
$file_name = $_FILES['batchFile']['name'];
$file_tmp = $_FILES['batchFile']['tmp_name'];
$batchFile = "../../batchfiles/batchProductFile." . date('Ymdhis') . '.csv';
if(!empty($file_name)){
if (!copy($file_tmp, $batchFile)) {//-- save file
$error_message = "upload file failure : $file_name";
}
}
}else if($_POST['Submit'] == "Confirm Submit"){
$file_tmp = $_POST['batchFile'];
$batchFile = $_POST['batchFile'];
}
if(empty($error_message)){
$oCSVParser->parser($batchFile);
$arrNameList = $oCSVParser->getNameList();// csv file product name list
$arrRelatedNew = array();
while(!$oCSVParser->isEnd()){
$oCSVParser->nextLine();
$colorAttributeID = 0;
$manufacturerID = 0;
$categoryID = 0;
$totalCount = 0;
$taxRateID = 1;
$shippingTypeID = 0;
$arrSizeID = array();
$arrVisorID = array();
$arrRelatedPID = array();
$arrImages = array();
$name = $oCSVParser->getValue('name');
$URL = $oCSVParser->getValue('url');
$description = $oCSVParser->getValue('description');
$price = $oCSVParser->getValue('price');
$weight = $oCSVParser->getValue('weight');
$model = $oCSVParser->getValue('model');
$manufacturer = $oCSVParser->getValue('manufacturer');
$size = $oCSVParser->getValue('size');
$visor = $oCSVParser->getValue('visor');
$color = $oCSVParser->getValue('color');
$related = $oCSVParser->getValue('related');
$UPC = $oCSVParser->getValue('upc');
$images = $oCSVParser->getValue('images');
$category = $oCSVParser->getValue('category');
$mainImage = $oCSVParser->getValue('mainimage');
$shippingType = $oCSVParser->getValue('shippingtype');
$arrinfo = array();
if(empty($name)){
$arrinfo[] = 'Product name <font color="#FF0000"> is required. </font>';
continue;
}else if(empty($description)){
$arrinfo[] = 'Product description <font color="#FF0000"> is required. </font>';
}else if(empty($price)){
$arrinfo[] = 'Product price <font color="#FF0000"> is required. </font>';
}else if(empty($color)){
$arrinfo[] = 'Product color <font color="#FF0000"> is required. </font>';
}else if(empty($images)){
$arrinfo[] = 'Product images <font color="#FF0000"> is required. </font>';
}else {
}
// check product existed?
if(!empty($name)){
if(array_key_exists(strtolower($name), $arrProducts)){
$arrinfo[] = "<b>product name existed </b>: <font color='#FF0000'>$name </font> in Site.";
}
if(array_key_exists($name, $arrNameList)){
$arrKeys = array_keys($arrNameList, $name);
if(count($arrKeys) > 1)
$arrinfo[] = "<b>product name repeat </b>: <font color='#FF0000'>$name </font>";
}
}
// check manufacturer
if(!empty($manufacturer)){
$sql = "SELECT id FROM manufacturers WHERE name = '$manufacturer'";
$manufacturerID = $oProduct->getColumn(DB_TAG_PUBLIC, $sql);
if(empty($manufacturerID)){
$arrinfo[] = "<b>not found manufacturer</b>: <font color='#FF0000'>$manufacturer </font>";
}
}
// check shippingType
if(!empty($shippingType)){
$sql = "SELECT id FROM shipping_type WHERE name = '$shippingType'";
$shippingTypeID = $oProduct->getColumn(DB_TAG_PUBLIC, $sql);
if(empty($shippingTypeID)){
$arrinfo[] = "<b>not found shipping Type</b>: <font color='#FF0000'>shippingType </font>";
}
}
// check category
if(!empty($category)){
$sql = "SELECT id FROM info_class WHERE name = '$category'";
$categoryID = $oProduct->getColumn(DB_TAG_PUBLIC, $sql);
if(empty($categoryID)){
$arrinfo[] = "<b>not found category</b>: <font color='#FF0000'>$category </font>";
}
}
// check color
if(!empty($color)){
$sql = "SELECT id FROM attributes WHERE parentID = 33 AND name = '$color'";
$colorAttributeID = $oProduct->getColumn(DB_TAG_PUBLIC, $sql);
if(empty($colorAttributeID)){
$arrinfo[] = "<b>not found color</b>: <font color='#FF0000'>$color </font>";
}
}
// check size
if(!empty($size)){
$arrSize = explode(',', $size);
foreach($arrSize as $sizename){
$sql = "SELECT id FROM attributes WHERE parentID = 1 AND name = '$sizename'";
$sizeAttributeID = $oProduct->getColumn(DB_TAG_PUBLIC, $sql);
if(empty($sizeAttributeID)){
$arrinfo[] = "<b>not found size</b>: <font color='#FF0000'>$sizename. </font>";
}else{
$arrSizeID[] = $sizeAttributeID;
}
}
}
// check visor
if(!empty($visor)){
$arrVisro = explode(';', $visor);
foreach($arrVisro as $visorname){
$arrVisorPrice = explode('/', $visorname);
$sql = "SELECT id FROM attributes WHERE parentID = 4 AND name = '" . $arrVisorPrice[0] . "'";
$visorAttributeID = $oProduct->getColumn(DB_TAG_PUBLIC, $sql);
if(empty($visorAttributeID)){
$arrinfo[] = "<b>not found visor</b>: <font color='#FF0000'>" . $arrVisorPrice[0] . " </font>";
}else{
if(count($arrVisorPrice) > 1){
if(is_numeric($arrVisorPrice[1]))
$arrVisorID[$visorAttributeID] = $arrVisorPrice[1] * 100;
else
$arrinfo[] = "<b>visor price format error </b>: <font color='#FF0000'>" . $arrVisorPrice[1] . " </font>";
}else
$arrVisorID[$visorAttributeID] = 0;
}
}
}
// check images
if(!empty($images)){
$arrUploadImages = explode(',', $images);
$imageDIR = "../../batchImages";
$arrFileNameList = $oFiles->listFileName($imageDIR);
foreach($arrUploadImages as $imagename){
if(!in_array($imagename, $arrFileNameList)){
$arrinfo[] = "<b>not found image</b> : <font color='#FF0000'>$imagename.</font>";
}else{
$md5 = md5(file_get_contents($imageDIR . "/$imagename"));
$imageid = $objUploadFiles->isExisted($arrOperate, UploadFiles::TYPE_IMAGE, $md5);
if(!empty($imageid) && $_POST['Submit'] != "Confirm Submit"){
$productIDs = $oProduct->productIDsOfImage($arrOperate, $imageid);
$arrinfo[] = "<b>image existed </b> <font color='#FF0000'>$imagename</font> with product ID list [ $productIDs ]";
}else{
$imageinfo = getimagesize($imageDIR . "/$imagename");
$arr_image_extend_name = explode('/', $imageinfo['mime']);
$image_extend_name = $arr_image_extend_name[count($arr_image_extend_name) - 1];
$arrImage = array();
$arrImage['name'] = $imagename;
$arrImage['file_path'] = $imageDIR . "/$imagename";
$arrImage['file_size'] = filesize($imageDIR . "/$imagename");
$arrImage['width'] = $imageinfo[0];
$arrImage['height'] = $imageinfo[1];
$arrImage['md5'] = $md5;
$arrImage['extName'] = $image_extend_name;
$arrImages[] = $arrImage;
}
}
}
}
// check related
if(!empty($related)){
$arrRelated = explode(',', $related);
foreach($arrRelated as $relatedName){
if(!array_key_exists(strtolower($relatedName), $arrProducts)){
if(!in_array($relatedName, $arrNameList)){
$arrinfo[] = "<b>not found related product</b> : <font color='#FF0000'>$relatedName. </font>";
}else{
$arrRelatedNew[] = $relatedName;
}
}else{
$arrKeys = array_keys($arrProducts, strtolower($relatedName));
foreach($arrKeys as $key){
$arrRelatedPID[] = $arrProducts[$key];
}
}
}
}
if(count($arrinfo) == 0){
if($_POST['Submit'] == "Confirm Submit"){
$strStatus = 'normal';
$productID = $oProduct->add($arrOperate, $categoryID, $price, $weight, $totalCount, $model, $manufacturerID, $taxRateID, $UPC, $URL, $LANGEUAGE_ID, $name, $description, $strStatus, $shippingTypeID);
if($productID){
$oProduct->addAttribute($arrOperate, $productID, $colorAttributeID, 0);
foreach($arrSizeID as $sizeid){
$oProduct->addAttribute($arrOperate, $productID, $sizeid, 0);
}
foreach($arrVisorID as $visorid => $visorPrice){
$oProduct->addAttribute($arrOperate, $productID, $visorid, $visorPrice);
}
foreach($arrRelatedPID as $relatedPid){
if($productID != $relatedPid){
$sql = "INSERT INTO products_related SET type = 1, productID = $productID, relatedProdID = $relatedPid ON DUPLICATE KEY UPDATE relatedProdID = VALUES(relatedProdID)";
$oProduct->update(DB_TAG_PUBLIC, $sql);
}
}
foreach ($arrImages as $arrImg) {
$isMain = 'no';
if($arrImg['name'] == $mainImage)
$isMain = 'yes';
$imageid = $objUploadFiles->add($arrOperate, UploadFiles::TYPE_IMAGE, $arrImg['extName'], $arrImg['md5'], $arrImg['width'], $arrImg['height'], $arrImg['file_size']);
$oProduct->addImage($arrOperate, $productID, $imageid, $colorAttributeID, $isMain);
$imageName = $imageid . '.' . strtolower($arrImg['extName']);
if (!copy($arrImg['file_path'], $objFiles->getFullPathByID(PRODUCT_IMAGE_DIR, $imageid, $imageName))) {//-- save image
$error_message = "copy image failure.";
}
}
if(count($arrRelatedNew) > 0)
$arrAllRelatedNew[$productID] = $arrRelatedNew;
$arrRelatedPNamePID[$name] = $productID;
}
$arrinfo[] = ">>>>><font color='#26B912'> Complete to add new products.</font>";
$checkOK = 'no';
}else{
$arrinfo[] = ">>>>><font color='#26B912'> not found error, can write to Site.</font>";
}
}else
$checkOK = 'no';
if(array_key_exists($name, $arrCheckResult)){
$arrCheckResult[$name] = array("<b>product name repeat </b>: <font color='#FF0000'>$name </font>");
}else{
$arrCheckResult[$name] = $arrinfo;
}
}
}
}
foreach ($arrAllRelatedNew as $productID => $arrRelated) {
foreach ($arrRelated as $relatedpName) {
$relatedPid = $arrRelatedPNamePID[$relatedpName];
if(empty($relatedPid))
$error_message .= "related product add error. not found related product ID, product ID $productID";
else if($productID != $relatedPid){
$sql = "INSERT INTO products_related SET type = 1, productID = $productID, relatedProdID = $relatedPid ON DUPLICATE KEY UPDATE relatedProdID = VALUES(relatedProdID)";
$oProduct->update(DB_TAG_PUBLIC, $sql);
}
}
}
if(count($arrCheckResult) == 0)
$checkOK = 'no';
/*----- out html -----*/
$smarty = new Smarty(); //----- out template
$smarty->template_dir = TEMPLATE_SYS_DIR;
$smarty->compile_dir = COMPILE_SYS_DIR;
$smarty->assign('error_message', $error_message);
$smarty->assign('menuGid', $menuGid);
$smarty->assign('menuid', $menuid);
$smarty->assign('checkOK', $checkOK);
$smarty->assign('batchFile', $batchFile);
$smarty->assign('arrCheckResult', $arrCheckResult);
$smarty->display('batchProduct.htm');
?>
| 123gohelmetsv2 | trunk/admin/product/batchProduct.php | PHP | asf20 | 12,483 |
<?php
include_once("../configure/admin.config.inc.php"); //--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Smarty.class.php"); //--> out template
include_once("Operation.php"); //--> Operation
include_once("Product.php"); //--> Merchant
include_once("TaxClass.php"); //-->
include_once("Attributes.php"); //--> Attributes
include_once("TaxRates.php"); //-->
include_once("UploadFiles.php"); //--> UploadFiles
include_once("Files.php"); //--> Files
include_once("InfoClass.php"); //--> info class
require_once("controlHeader.php"); //--> system control header
require_once("../tools/fckeditor/fckeditor.php") ;
$objOperate = new Operation($objSession->getLanguage()); //--> Operation
$objProduct = new Product(DB_TAG_PUBLIC, $uid); //--> product
$objTaxClass = new TaxClass(DB_TAG_PUBLIC, $uid); //--> TaxClass
$objTaxRates = new TaxRates(DB_TAG_PUBLIC, $uid); //--> TaxRates
$objAttributes = new Attributes(DB_TAG_PUBLIC, $uid); //--> Attributes
$objUploadFiles = new UploadFiles(DB_TAG_PUBLIC, $uid); //--> UploadFiles
$objFiles = new Files(DB_TAG_PUBLIC, $uid); //--> Files
$objInfoClass = new InfoClass(DB_TAG_SYSTEM, $uid); //--> Info Class
$error_message = '';
$name = '';
$URL = '';
$price = 0;
$weight = 0;
$model = '';
$manufacturerID = 0;
$taxClassID = 0;
$UPC = '';
$description = '';
$taxRateID = 0;
$strStatus = 'normal';
$totalCount = 0;
$shippingTypeID = 0;
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
$prodAttributes = array();
if(!empty($id)){
$arrData = $objProduct->getFromID($arrOperate, $id, $LANGEUAGE_ID);
$strOldName = $arrData['name'];
$URL = $arrData['url'];
$description = $arrData['description'];
$price = $arrData['price'] / 100;
$weight = $arrData['weight'] / 100;
$model = $arrData['model'];
$manufacturerID = $arrData['manufacturerID'];
$taxClassID = $arrData['taxClassID'];
$UPC = $arrData['UPC'];
$taxRateID = $arrData['taxRateID'];
$strStatus = $arrData['status'];
$totalCount = $arrData['r_totalCount'];
$categoryID = $arrData['categoryID'];
$shippingTypeID = $arrData['shippingTypeID'];
$name = $strOldName;
$prodAttributes = $objProduct->getHash(DB_TAG_PUBLIC, "SELECT attributeID, attributePrice FROM products_attributes WHERE productID = $id");
}
if(isset($_POST['Submit']) && $_POST['Submit'] == 'Submit'){
$id = $_POST['id'];
$name = $_POST['name'];
$URL = $_POST['url'];
$description = $_POST['description'];
$price = $_POST['price'];
$weight = $_POST['weight'];
$model = $_POST['model'];
$manufacturerID = $_POST['manufacturerID'];
$taxClassID = $_POST['taxClassID'];
$UPC = $_POST['UPC'];
$taxRateID = $_POST['taxRateID'];
$strStatus = $_POST['status'];
$totalCount = $_POST['totalCount'];
$categoryID = $_POST['categoryID'];
$attributes = $_POST['attributes'];
$shippingTypeID = $_POST['shippingTypeID'];
if(empty($error_message)){
if(empty($name)){
$error_message = 'The product name should\'t be empty.';
}else if($strOldName != $name && $objProduct->IsExistName($LANGEUAGE_ID, $name)){
$error_message = 'The product name be existed.';
}else{
$isReturnOrg = $objProduct->edit($arrOperate, $id, $categoryID, $price, $weight, $totalCount, $model, $manufacturerID, $taxRateID, $UPC, $URL, $LANGEUAGE_ID, $name, $description, $strStatus, $shippingTypeID);
if($isReturnOrg){
if(is_array($attributes)){
$objProduct->deleteAttribute($arrOperate, $id);
$prodAttributes = array();
foreach($attributes as $attributeid){
$attributePrice = $_POST["attribute_price_$attributeid"];
if(!empty($attributePrice) && is_numeric($attributePrice))
$attributePrice = $attributePrice * 100;
else
$attributePrice = 0;
$prodAttributes[$attributeid] = $attributePrice;
$isReturnOrg = $objProduct->addAttribute($arrOperate, $id, $attributeid, $attributePrice);
}
}
$error_message = 'edit successfully.';
}else{
$error_message = 'edit failure.';
}
}
}
}
/*----- load attributes ------*/
$arrAttributes = array();
$arrAllAttri = $objAttributes->listFromCustom($arrOperate, " WHERE languageID = $LANGEUAGE_ID AND parentid = 0 ORDER BY sorts");
foreach($arrAllAttri as $attribute){
$attributesTmp = array();
$values = $objAttributes->getAllData(DB_TAG_PUBLIC, "SELECT id, name FROM attributes WHERE languageID = $LANGEUAGE_ID AND parentid = " . $attribute['id']);
foreach($values as $leafAttri){
$attriOptions = $objAttributes->getAllData(DB_TAG_PUBLIC, "SELECT id, keyes, valuess FROM attributes_options WHERE languageID = $LANGEUAGE_ID AND attributeID = " . $leafAttri['id']);
$attriOptionstmp = array();
foreach($attriOptions as $attriOption){
if($attriOption['keyes'] == 'Price'){
if(array_key_exists($leafAttri['id'], $prodAttributes)){
$attriOption['valuess'] = $prodAttributes[$leafAttri['id']];
}
}
$attriOptionstmp[] = $attriOption;
}
if(array_key_exists($leafAttri['id'], $prodAttributes)){
$leafAttri['price'] = $prodAttributes[$leafAttri['id']];
$leafAttri['checked'] = ' checked';
}else{
$leafAttri['price'] = 0;
$leafAttri['checked'] = '';
}
$leafAttri['options'] = $attriOptionstmp;
$attributesTmp[] = $leafAttri;
}
$attribute['attribute'] = $attributesTmp;
$arrAttributes[] = $attribute;
}
$arrTax = array();
$arrTaxClass = $objTaxClass->getHash(DB_TAG_PUBLIC, "SELECT id, name FROM tax_class");
foreach($arrTaxClass as $key => $value){
$where = " WHERE classid = $key";
$arrTaxRate = $objTaxRates->listCustom($arrOperate, $where);
foreach($arrTaxRate as $taxRates){
$arrTax[$taxRates['id']] = $value . ' ---> ' . $taxRates['summary'];// . ' (' . $arrTaxRate['rate']/100 . ')';
}
}
$arrManufacturer = array();
$arrManufacturer = $objTaxClass->getHash(DB_TAG_PUBLIC, "SELECT id, name FROM manufacturers WHERE languageID = $LANGEUAGE_ID");
$arrShippingType = $objTaxClass->getHash(DB_TAG_PUBLIC, "SELECT id, name FROM shipping_type WHERE languageID = $LANGEUAGE_ID");
$arrImages = $objProduct->getHash(DB_TAG_PUBLIC, "SELECT u.id, u.extName FROM upload_files u, product_images p WHERE u.id = p.imageID AND p.productID = $id AND type = " . UploadFiles::TYPE_IMAGE);
$arrStatus = array('normal' => 'Normal', 'pause' => 'pause', 'stop' => 'Stop', 'hot' => 'Hot');
/*----- load FCKEditor -----*/
$oFCKeditor = new FCKeditor('description') ;
$oFCKeditor->Height = 300;
$oFCKeditor->BasePath = FCKeditor_BASE_PATH;
$oFCKeditor->Value = $description;
$fckHtml = $oFCKeditor->CreateHtml() ;
/*----- load attributes ------*/
$arrSizeValue = array();
$arrSize = $objAttributes->getByName($arrOperate, $LANGEUAGE_ID, 'Size');
if(is_array($arrSize)){
$arrSizeValue = $objAttributes->getHash(DB_TAG_PUBLIC, "SELECT id, name FROM attributes WHERE languageID = $LANGEUAGE_ID AND parentid = " . $arrSize['id']);
}
/*---------- categories -------------------*/
$arrCategories = $objInfoClass->getDir($arrOperate, $parentid = 0);
/*----- out html -----*/
$smarty = new Smarty(); //----- out template
$smarty->template_dir = TEMPLATE_SYS_DIR;
$smarty->compile_dir = COMPILE_SYS_DIR;
$smarty->assign('menuGid', $menuGid);
$smarty->assign('menuid', $menuid);
$smarty->assign('id', $id);
$smarty->assign('error_message', $error_message);
$smarty->assign('backurl',$backurl);
$smarty->assign('arrCategories',$arrCategories);
$smarty->assign('categoryID', $categoryID);
$smarty->assign('arrImages', $arrImages);
$smarty->assign('arrTax',$arrTax);
$smarty->assign('taxRateIDS', $taxRateID);
$smarty->assign('arrStatus', $arrStatus);
$smarty->assign('StatusS', $strStatus);
$smarty->assign('arrManufacturer',$arrManufacturer);
$smarty->assign('manufacturerIDS', $manufacturerID);
$smarty->assign('name', $name);
$smarty->assign('url', $url);
$smarty->assign('price', $price);
$smarty->assign('weight', $weight);
$smarty->assign('totalCount', $totalCount);
$smarty->assign('model', $model);
$smarty->assign('UPC', $UPC);
$smarty->assign('url', $URL);
$smarty->assign('arrAttributes', $arrAttributes);
$smarty->assign('shippingTypeID', $shippingTypeID);
$smarty->assign('arrShippingType', $arrShippingType);
$smarty->assign("fckHtml", $fckHtml);
$smarty->display('listProduct_Edit.htm');
?>
| 123gohelmetsv2 | trunk/admin/product/listProduct_Edit.php | PHP | asf20 | 8,434 |
<?php
include_once("../configure/admin.config.inc.php"); //--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Smarty.class.php"); //--> out template
include_once("Operation.php"); //--> Operation
include_once("Product.php"); //--> Merchant
include_once("TaxClass.php"); //-->
include_once("TaxRates.php"); //-->
include_once("Attributes.php"); //--> Attributes
include_once("UploadFiles.php"); //--> UploadFiles
include_once("Files.php"); //--> Files
include_once("InfoClass.php"); //--> info class
require_once("controlHeader.php"); //--> system control header
require_once("../fckeditor/fckeditor.php") ;
$objOperate = new Operation($objSession->getLanguage()); //--> Operation
$objProduct = new Product(DB_TAG_PUBLIC, $uid); //--> product
$objTaxClass = new TaxClass(DB_TAG_PUBLIC, $uid); //--> TaxClass
$objTaxRates = new TaxRates(DB_TAG_PUBLIC, $uid); //--> TaxRates
$objAttributes = new Attributes(DB_TAG_PUBLIC, $uid); //--> Attributes
$objUploadFiles = new UploadFiles(DB_TAG_PUBLIC, $uid); //--> UploadFiles
$objFiles = new Files(DB_TAG_PUBLIC, $uid); //--> Files
$objInfoClass = new InfoClass(DB_TAG_SYSTEM, $uid); //--> Info Class
$error_message = '';
$name = '';
$URL = '';
$price = 0;
$weight = 0;
$model = '';
$manufacturerID = 0;
$taxClassID = 0;
$UPC = '';
$description = '';
$taxRateID = 0;
$strStatus = 'normal';
$totalCount = 0;
$categoryID = 0;
$shippingTypeID = 0;
$productID = 0;
$prodAttributes = array();
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(isset($_POST['Submit'])){
$name = $_POST['name'];
$URL = $_POST['url'];
$description = $_POST['description'];
$price = $_POST['price'];
$weight = $_POST['weight'];
$model = $_POST['model'];
$manufacturerID = $_POST['manufacturerID'];
$taxClassID = $_POST['taxClassID'];
$UPC = $_POST['UPC'];
$taxRateID = $_POST['taxRateID'];
$strStatus = $_POST['status'];
$totalCount = $_POST['totalCount'];
$categoryID = $_POST['categoryID'];
$attributes = $_POST['attributes'];
$shippingTypeID = $_POST['shippingTypeID'];
$productID = $_POST['productID'];
if(empty($error_message)){
if(empty($name)){
$error_message = 'The product name should\'t be empty.';
}else if($objProduct->IsExistName($LANGEUAGE_ID, $name)){
$error_message = 'the product name be existed.';
}else{
$productID = $objProduct->add($arrOperate, $categoryID, $price, $weight, $totalCount, $model, $manufacturerID, $taxRateID, $UPC, $URL, $LANGEUAGE_ID, $name, $description, $strStatus, $shippingTypeID);
if($productID){
if(is_array($attributes)){
foreach($attributes as $attributeid){
$attributePrice = $_POST["attribute_price_$attributeid"];
if(!empty($attributePrice) && is_numeric($attributePrice)){
$attributePrice = $attributePrice * 100;
}else
$attributePrice = 0;
$prodAttributes[$attributeid] = $attributePrice;
$isReturnOrg = $objProduct->addAttribute($arrOperate, $productID, $attributeid, $attributePrice);
}
}
$location = "listProduct.php?menuGid=$menuGid&menuid=$menuid&checkPID=$productID";
header("Location: $location");
exit;
$error_message = 'add successfully.';
}else{
$error_message = 'add failure.';
}
}
}
}
$arrTax = array();
$arrTaxClass = $objTaxClass->getHash(DB_TAG_PUBLIC, "SELECT id, name FROM tax_class");
foreach($arrTaxClass as $key => $value){
$where = " WHERE classid = $key";
$arrTaxRate = $objTaxRates->listCustom($arrOperate, $where);
foreach($arrTaxRate as $taxRates){
$arrTax[$taxRates['id']] = $value . ' ---> ' . $taxRates['summary'];// . ' (' . $arrTaxRate['rate']/100 . ')';
}
}
$arrShippingType = $objTaxClass->getHash(DB_TAG_PUBLIC, "SELECT id, name FROM shipping_type WHERE languageID = $LANGEUAGE_ID");
$arrManufacturer = array();
$arrManufacturer = $objTaxClass->getHash(DB_TAG_PUBLIC, "SELECT id, name FROM manufacturers WHERE languageID = $LANGEUAGE_ID");
$arrStatus = array('normal' => 'Normal', 'pause' => 'pause', 'stop' => 'Stop', 'hot' => 'Hot');
/*----- load attributes ------*/
$arrAttributes = array();
$arrAllAttri = $objAttributes->listFromCustom($arrOperate, " WHERE languageID = $LANGEUAGE_ID AND parentid = 0 ORDER BY sorts");
foreach($arrAllAttri as $attribute){
$attributesTmp = array();
$values = $objAttributes->getAllData(DB_TAG_PUBLIC, "SELECT id, name FROM attributes WHERE languageID = $LANGEUAGE_ID AND parentid = " . $attribute['id']);
foreach($values as $attri){
$attriOptions = $objAttributes->getAllData(DB_TAG_PUBLIC, "SELECT id, keyes, valuess FROM attributes_options WHERE languageID = $LANGEUAGE_ID AND attributeID = " . $attri['id']);
$attriOptionstmp = array();
foreach($attriOptions as $attriOption){
if($attriOption['keyes'] == 'Price'){
if(array_key_exists($attri['id'], $prodAttributes)){
$attriOption['valuess'] = $prodAttributes[$attri['id']];
}
}
$attriOptionstmp[] = $attriOption;
}
if(array_key_exists($attri['id'], $prodAttributes)){
$attri['price'] = $prodAttributes[$attri['id']];
$attri['checked'] = ' checked';
}else{
$attri['price'] = 0;
$attri['checked'] = '';
}
$attri['options'] = $attriOptionstmp;
$attributesTmp[] = $attri;
}
$attribute['attribute'] = $attributesTmp;
$arrAttributes[] = $attribute;
}
/*---------- categories -------------------*/
$arrCategories = $objInfoClass->getDir($arrOperate, $parentid = 0);
/*----- load FCKEditor -----*/
$oFCKeditor = new FCKeditor('description') ;
//$oFCKeditor->Height = 300;
$oFCKeditor->BasePath = FCKeditor_BASE_PATH;
$oFCKeditor->Value = $description;
$fckHtml = $oFCKeditor->CreateHtml() ;
/*----- out html -----*/
$smarty = new Smarty(); //----- out template
$smarty->template_dir = TEMPLATE_SYS_DIR;
$smarty->compile_dir = COMPILE_SYS_DIR;
$smarty->assign('menuGid', $menuGid);
$smarty->assign('menuid', $menuid);
$smarty->assign('error_message', $error_message);
$smarty->assign('backurl',$backurl);
$smarty->assign('arrCategories',$arrCategories);
$smarty->assign('categoryID', $categoryID);
$smarty->assign('arrTax',$arrTax);
$smarty->assign('taxRateIDS', $taxRateID);
$smarty->assign('arrStatus', $arrStatus);
$smarty->assign('StatusS', $strStatus);
$smarty->assign('arrManufacturer',$arrManufacturer);
$smarty->assign('manufacturerIDS', $manufacturerID);
$smarty->assign('name', $name);
$smarty->assign('url', $url);
$smarty->assign('price', $price);
$smarty->assign('weight', $weight);
$smarty->assign('totalCount', $totalCount);
$smarty->assign('model', $model);
$smarty->assign('UPC', $UPC);
$smarty->assign('url', $URL);
$smarty->assign('selectAttributes', $attributes);
$smarty->assign('arrAttributes', $arrAttributes);
$smarty->assign('productID', $productID);
$smarty->assign('shippingTypeID', $shippingTypeID);
$smarty->assign('arrShippingType', $arrShippingType);
$smarty->assign("fckHtml", $fckHtml);
$smarty->display('listProduct_Add.htm');
?> | 123gohelmetsv2 | trunk/admin/product/listProduct_Add.php | PHP | asf20 | 7,128 |
<?php
include_once("../configure/admin.config.inc.php");//--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Product.php"); //--> Product
include_once("Operation.php"); //--> Operation
require_once("controlHeader.php"); //--> system control header
$objProduct = new Product(DB_TAG_PUBLIC, $uid); //--> Product
$objOperate = new Operation($objSession->getLanguage()); //--> Operation instance
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(isset($_GET['id']) && !empty($_GET['id'])){
$id = $_GET['id'];
$isReturn = $objProduct->setStatus($arrOperate, $id, "stop");
if($isReturn){
$error_message = 'Stop successfully.';
}else
$error_message = 'Stop failure.';
}
echo "<script language='javascript'>";
echo "alert(\"$error_message\");";
echo "location.href=\"".$_SERVER['HTTP_REFERER']."\";";
echo "</script>";
//$backurl = $_SERVER['HTTP_REFERER'];
//header("Location: $backurl");
?>
| 123gohelmetsv2 | trunk/admin/product/listProduct_Stop.php | PHP | asf20 | 993 |
<?php
include_once("../configure/admin.config.inc.php"); //--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Smarty.class.php"); //--> out template
include_once("Product.php"); //--> Merchant
include_once("Operation.php"); //--> Operation
include_once("UploadFiles.php"); //--> UploadFiles
include_once("Files.php"); //--> Files
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation(); //--> Operation
$objProduct = new Product(DB_TAG_SYSTEM, $uid); //--> Product
$objFiles = new Files(DB_TAG_PUBLIC, $uid); //--> Files
$objUploadFiles = new UploadFiles(DB_TAG_PUBLIC, $uid); //--> UploadFiles
$error_message = '';
$attributeIDRepeat = 0;
$arrAllImage = array();
$arrExistedImage = array();
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
$imageid = $_GET['imageid'];
if(isset($_GET['action']))
$action = $_GET['action'];
if(isset($_POST['action']))
$action = $_POST['action'];
if(isset($_GET['backurl_base64']))
$backurl = base64_decode($_GET['backurl_base64']);
if($action == 'delete'){
$arrDBImage = $objUploadFiles->getByID($arrOperate, $_GET['imageid']);
$imageid = $arrDBImage['id'];
$imageName = $arrDBImage['extName'];
$path = $objFiles->getFullPathByID(PRODUCT_IMAGE_DIR, $imageid, $imageid . '.' . $imageName);
if (file_exists($path)) {
unlink($path);
$objUploadFiles->delete($arrOperate, $imageid);
$objProduct->deleteImage($arrOperate, $id, $imageid);
}
}
if($action == 'Use Existed Images'){
$arrExistedImg = $_POST['existedImages'];
foreach ($arrExistedImg as $existedImageid) {
$objProduct->addImage($arrOperate, $id, $existedImageid, $_POST['attributeIDRepeat']);
}
}
if($action == 'Charge Color To'){
$piid = $_GET['piid'];
$changeAttributeID = $_GET['changeAttributeID'];
$objProduct->update(DB_TAG_PUBLIC, "UPDATE product_images SET attributeID = '$changeAttributeID' WHERE id = $piid");
}
if($action == 'setMain'){
$isMain = $_GET['ismain'];
$objProduct->update(DB_TAG_PUBLIC, "UPDATE product_images SET isMain = '$isMain' WHERE id = " . $_GET['piid']);
}
if($action == 'Upload'){
$arrImages = array();
$blacklist = array(".php", ".phtml", ".php3", ".php4");
foreach ($_FILES["image"]["error"] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
foreach ($blacklist as $item) {
if(preg_match("/$item\$/i", $_FILES['image']['name'][$key])) {
$error_message = "only support gif and jpg format.";
}
}
if(empty($error_message)){
$imageinfo = getimagesize($_FILES['image']['tmp_name'][$key]);
if($imageinfo['mime'] != 'image/gif' && $imageinfo['mime'] != 'image/jpeg') {
$error_message = "only support gif and jpg format.";
}else if($file_size >1024000)
$error_message = 'Your image more than 1024 kb('.ceil($file_size/1024).'kb)';
else{
/*-- get ext image file name --*/
$arr_image_extend_name = explode('/', $imageinfo['mime']);
$image_extend_name = $arr_image_extend_name[count($arr_image_extend_name) - 1];
$arrImage = array();
$arrImage['name'] = $_FILES['image']['name'][$key];
$arrImage['tmp_name'] = $_FILES['image']['tmp_name'][$key];
$arrImage['file_size'] = filesize($_FILES['image']['tmp_name'][$key]);
$arrImage['width'] = $imageinfo[0];
$arrImage['height'] = $imageinfo[1];
$arrImage['md5'] = md5(file_get_contents($_FILES['image']['tmp_name'][$key]));
$arrImage['extName'] = $image_extend_name;
$arrImages[] = $arrImage;
}
}
}
if(!empty($error_message)){
break;
}
}
foreach ($arrImages as $arrImg) {
$imageid = $objUploadFiles->isExisted($arrOperate, UploadFiles::TYPE_IMAGE, $arrImg['md5']);
if(!empty($imageid)){
$arrImageInfo = $objUploadFiles->getByID($arrOperate, $imageid);
$attributeIDRepeat = $_POST['attributeID'];
$arrExistedImage[$imageid] = $arrImageInfo['extName'];
$productIDs = $objProduct->productIDsOfImage($arrOperate, $imageid);
$error_message .= ' Image ' . $arrImg['name'] . ' existed. Product ID list : ' . $productIDs;
continue;
}
$imageid = $objUploadFiles->add($arrOperate, UploadFiles::TYPE_IMAGE, $arrImg['extName'], $arrImg['md5'], $arrImg['width'], $arrImg['height'], $arrImg['file_size']);
$objProduct->addImage($arrOperate, $id, $imageid, $_POST['attributeID']);
$imageName = $imageid . '.' . strtolower($arrImg['extName']);
if (!move_uploaded_file($arrImg['tmp_name'], $objFiles->getFullPathByID(PRODUCT_IMAGE_DIR, $imageid, $imageName))) {//-- save image
$error_message = "upload image failure.";
}
}
}
if(!empty($id)){
$sql = "SELECT id, name FROM attributes where parentid=33";// get all leaf for color attribute
$arrColorAttributes = $objProduct->getHash(DB_TAG_PUBLIC, $sql);
$attributeIDs;
foreach($arrColorAttributes as $attributeid=>$name){
if(strlen($attributeIDs) > 0){
$attributeIDs .= ',';
}
$attributeIDs .= $attributeid;
}
if(strlen($attributeIDs) > 0){
$sql = "SELECT pa.attributeID, a.name FROM products_attributes pa, attributes a WHERE pa.attributeID = a.id AND pa.productID=$id AND pa.attributeID in ($attributeIDs)";// get all leaf for color attribute
$arrAttributes = $objProduct->getAllData(DB_TAG_PUBLIC, $sql);
}
$sql = "SELECT p.id, p.imageID, p.attributeID, p.isMain, u.extName FROM product_images p, upload_files u WHERE p.imageID = u.id AND p.productID = $id";
$arrImages = $objProduct->getAllData(DB_TAG_PUBLIC, $sql);
foreach($arrImages as $image){
$arrtmp = array();
if(array_key_exists($image['attributeID'], $arrAllImage)){
$arrSub = $arrAllImage[$image['attributeID']];
$arrImageIDs = $arrSub['imageIDs'];
$arrImageIDs[$image['imageID']]['id'] = $image['id'];
$arrImageIDs[$image['imageID']]['isMain'] = $image['isMain'];
$arrImageIDs[$image['imageID']]['imageID'] = $image['imageID'];
$arrImageIDs[$image['imageID']]['imageExt'] = $image['extName'];
$arrSub['imageIDs'] = $arrImageIDs;
}else{
$arrSub = array();
$arrImageIDs = array();
$arrImageIDs[$image['imageID']]['id'] = $image['id'];
$arrImageIDs[$image['imageID']]['isMain'] = $image['isMain'];
$arrImageIDs[$image['imageID']]['imageID'] = $image['imageID'];
$arrImageIDs[$image['imageID']]['imageExt'] = $image['extName'];
if($image['attributeID'] != '0')
$arrSub['attributeName'] = $objProduct->getColumn(DB_TAG_PUBLIC, "SELECT name FROM attributes WHERE id = " . $image['attributeID']);
else
$arrSub['attributeName'] = 'Unknow Attributes';
$arrSub['imageIDs'] = $arrImageIDs;
}
$arrAllImage[$image['attributeID']] = $arrSub;
}
}
/*----- out html -----*/
$smarty = new Smarty(); //----- out template
$smarty->template_dir = TEMPLATE_SYS_DIR;
$smarty->compile_dir = CACHE_SYS_DIR;
$smarty->assign('error_message', $error_message);
$smarty->assign('menuGid', $menuGid);
$smarty->assign('menuid', $menuid);
$smarty->assign('id',$id);
$smarty->assign('backurl',$backurl);
$smarty->assign('backurl_base64',base64_encode($backurl));
$smarty->assign('arrAttributes', $arrAttributes);
$smarty->assign('arrAllImage', $arrAllImage);
$smarty->assign('arrExistedImage', $arrExistedImage);
$smarty->assign('attributeIDRepeat', $attributeIDRepeat);
$smarty->assign('changeAttributeID', $changeAttributeID);
$smarty->display('listProduct_Images.htm');
?>
| 123gohelmetsv2 | trunk/admin/product/listProduct_Images.php | PHP | asf20 | 7,540 |
<?php
include_once("../configure/admin.config.inc.php");//--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Product.php"); //--> Product
include_once("Operation.php"); //--> Operation
require_once("controlHeader.php"); //--> system control header
$objProduct = new Product(DB_TAG_PUBLIC, $uid); //--> Product
$objOperate = new Operation($objSession->getLanguage()); //--> Operation instance
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(isset($_GET['id']) && !empty($_GET['id'])){
$id = $_GET['id'];
$action = $_GET['action'];
$value = $_GET['value'];
if($action == 'hot')
$isReturn = $objProduct->setIsHot($arrOperate, $id, $value);
else if($action == 'new')
$isReturn = $objProduct->setIsNew($arrOperate, $id, $value);
else if($action == 'featured')
$isReturn = $objProduct->setIsFeatured($arrOperate, $id, $value);
if($isReturn){
$error_message = 'Set product successfully.';
}else
$error_message = 'Set product failure.';
}
echo "<script language='javascript'>";
echo "alert(\"$error_message\");";
echo "location.href=\"".$_SERVER['HTTP_REFERER']."\";";
echo "</script>";
//$backurl = $_SERVER['HTTP_REFERER'];
//header("Location: $backurl");
?>
| 123gohelmetsv2 | trunk/admin/product/listProduct_Set.php | PHP | asf20 | 1,289 |
<?php
include_once("../configure/admin.config.inc.php"); //--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Smarty.class.php"); //--> out template
include_once("Product.php"); //--> Merchant
include_once("Operation.php"); //--> Operation
include_once("TaxRates.php"); //-->
include_once("UploadFiles.php"); //--> UploadFiles
include_once("Files.php"); //--> Files
include_once("Attributes.php"); //--> Attributes
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation(); //--> Operation
$objProduct = new Product(DB_TAG_SYSTEM, $uid); //--> Product
$objTaxRates= new TaxRates(DB_TAG_PUBLIC, $uid); //--> TaxRates
$objFiles = new Files(DB_TAG_PUBLIC, $uid); //--> Files
$objUploadFiles = new UploadFiles(DB_TAG_PUBLIC, $uid); //--> UploadFiles
$objAttributes = new Attributes(DB_TAG_PUBLIC, $uid); //--> Attributes
$error_message = '';
$arrAllImage = array();
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
$arrInfo = $objProduct->getFromID($arrOperate, $id, $LANGEUAGE_ID);
if(is_array($arrInfo)){
$arrTaxRate = $objTaxRates->getTaxRate($arrOperate, $arrInfo['taxRateID']);
$arrInfo['taxRate'] = $arrTaxRate['summary'];
$arrManufacturer = $objTaxRates->getHash(DB_TAG_PUBLIC, "SELECT id, name FROM manufacturers WHERE id = " . $arrInfo['manufacturerID']);
$arrInfo['manufacturer'] = $arrManufacturer[$arrInfo['manufacturerID']];
// $sizeValue = $objProduct->getAllData(DB_TAG_PUBLIC, "SELECT a.name FROM attributes a, products_attributes pa WHERE a.id = pa.attributeID AND pa.productID = $id");
// $arrImages = $objTaxRates->getHash(DB_TAG_PUBLIC, "SELECT u.id, u.extName FROM upload_files u, product_images p WHERE u.id = p.imageID AND p.productID = $id AND type = " . UploadFiles::TYPE_IMAGE);
$sql = "SELECT p.imageID, p.attributeID, u.extName FROM product_images p, upload_files u WHERE p.imageID = u.id AND p.productID = $id";
$arrImages = $objProduct->getAllData(DB_TAG_PUBLIC, $sql);
foreach($arrImages as $image){
$arrtmp = array();
if(array_key_exists($image['attributeID'], $arrAllImage)){
$arrSub = $arrAllImage[$image['attributeID']];
$arrImageIDs = $arrSub['imageIDs'];
$arrImageIDs[$image['imageID']]['imageID'] = $image['imageID'];
$arrImageIDs[$image['imageID']]['imageExt'] = $image['extName'];
$arrSub['imageIDs'] = $arrImageIDs;
}else{
$arrSub = array();
$arrImageIDs = array();
$arrImageIDs[$image['imageID']]['imageID'] = $image['imageID'];
$arrImageIDs[$image['imageID']]['imageExt'] = $image['extName'];
if($image['attributeID'] != '0')
$arrSub['attributeName'] = $objProduct->getColumn(DB_TAG_PUBLIC, "SELECT name FROM attributes WHERE id = " . $image['attributeID']);
else
$arrSub['attributeName'] = 'Unknow Attributes';
$arrSub['imageIDs'] = $arrImageIDs;
}
$arrAllImage[$image['attributeID']] = $arrSub;
}
}
/*----- load attributes ------*/
$attributePrice = array();
$attributes = array();
$sortsValue = array();
$sizeValuess = $objProduct->getAllData(DB_TAG_PUBLIC, "SELECT pa.attributeID, a.name, a.parentid, pa.attributePrice, pa.pricePrefix FROM attributes a, products_attributes pa WHERE a.parentid != 33 AND a.id = pa.attributeID AND pa.productID = $id ORDER BY a.sorts");
foreach($sizeValuess as $arrRow){
if(!empty($arrRow['parentid'])){
if($arrRow['attributePrice'] > 0)
$attributePrice[$arrRow['attributeID']] = $arrRow['attributePrice'];
$attribute = $objProduct->getRow(DB_TAG_PUBLIC, "SELECT name, sorts FROM attributes WHERE id = " . $arrRow['parentid']);
if(array_key_exists($attribute['name'], $attributes)){
$arrSub = $attributes[$attribute['name']];
$arrData = $arrSub['attri'];
$key = $arrRow['attributeID']; //attribute value
if($arrRow['attributePrice'] > 0)
$arrData[$key] = $arrRow['name'] . ' ($' . $arrRow['pricePrefix'] . ($arrRow['attributePrice'] / 100) . ')';
else
$arrData[$key] = $arrRow['name'];
$arrSub['attri'] = $arrData;
$attributes[$attribute['name']] = $arrSub;
}else{
$arrData = array();
$arrOption = array();
$arrSub = array();
$key = $arrRow['attributeID']; //attribute value
if($arrRow['attributePrice'] > 0){
$arrData[$key] = $arrRow['name'] . ' ($' . $arrRow['pricePrefix'] . ($arrRow['attributePrice'] / 100) . ')';
}else
$arrData[$key] = $arrRow['name'];
$arrSub['attri'] = $arrData;
$attributes[$attribute['name']] = $arrSub;
$sortsValue[] = $attribute['sorts'];
}
}
}
array_multisort($sortsValue, $attributes);
/*----- out html -----*/
$smarty = new Smarty(); //----- out template
$smarty->template_dir = TEMPLATE_SYS_DIR;
$smarty->compile_dir = CACHE_SYS_DIR;
$smarty->assign('error_message', $error_message);
$smarty->assign('menuGid', $menuGid);
$smarty->assign('menuid', $menuid);
$smarty->assign('backurl',$backurl);
$smarty->assign('arrInfo', $arrInfo);
$smarty->assign('arrAllImage', $arrAllImage);
$smarty->assign('attributes', $attributes);
$smarty->display('listProduct_View.htm');
?>
| 123gohelmetsv2 | trunk/admin/product/listProduct_View.php | PHP | asf20 | 5,222 |
<?php
include_once("../configure/admin.config.inc.php");//--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Product.php"); //--> Product
include_once("Operation.php"); //--> Operation
require_once("controlHeader.php"); //--> system control header
$objProduct = new Product(DB_TAG_PUBLIC, $uid); //--> Product
$objOperate = new Operation($objSession->getLanguage()); //--> Operation instance
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(isset($_GET['id']) && !empty($_GET['id'])){
$id = $_GET['id'];
$isReturn = $objProduct->setStatus($arrOperate, $id, "normal");
if($isReturn){
$error_message = 'live successfully.';
}else
$error_message = 'live failure.';
}
echo "<script language='javascript'>";
echo "alert(\"$error_message\");";
echo "location.href=\"".$_SERVER['HTTP_REFERER']."\";";
echo "</script>";
//$backurl = $_SERVER['HTTP_REFERER'];
//header("Location: $backurl");
?>
| 123gohelmetsv2 | trunk/admin/product/listProduct_Live.php | PHP | asf20 | 993 |
<?php
include_once("../configure/admin.config.inc.php"); //--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Smarty.class.php"); //--> out template
include_once("Operation.php"); //--> Operation
include_once("Product.php"); //--> Product
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation($objSession->getLanguage()); //--> Operation
$oProduct = new Product(DB_TAG_SYSTEM, $uid); //--> Product
$error_message = '';
if($_GET['checkPID'])
$checkPID = $_GET['checkPID'];
else
$checkPID = 0;
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(count($arrOperate) > 0){
$strQuery = $_SERVER["REQUEST_URI"];
$arrUrlInfo = pathinfo($strQuery);
$selfFileName = $arrUrlInfo['filename'];
$arrOperateAllInfo = $objOperate->listFromCustom($arrOperate, " WHERE id in (".implode(",", $arrOperate).") AND name != 'Add'");
$i = 0;
foreach($arrOperateAllInfo as $key => $value){
$strFileName = $selfFileName."_".$value['name'].".php";
if(file_exists($strFileName)){
$arrOperateInfo[$i]['name'] = $value['name'];
$arrOperateInfo[$i]['viewName'] = $value['name'];
$i++;
}
}
}
if(isset($_GET['keyword']) && !empty($_GET['keyword'])){
$keyword = $_GET['keyword'];
$searchType = $_GET['searchType'];
if(empty($keyword)){
$error_message = 'The keyword should\'t be empty.';
}else{
if($searchType == 'id'){
if(is_numeric($keyword))
$where = " AND p.id = $keyword";
else
$error_message = 'The keyword should\'t be product ID.';
}else if($searchType == 'name'){
$where = " AND pd.name like '%$keyword%'";
}else{
$where = " AND pd.name like '%$keyword%' OR pd.description like '%$keyword%'";
}
}
}
$orderSuffix = $_GET['orderSuffix'];
if(empty($orderSuffix))
$orderSuffix = 'ASC';
if(isset($_GET['sort']) && $_GET['sort'] == 'name'){
$order = "ORDER BY pd.name $orderSuffix";
}else if(isset($_GET['sort']) && $_GET['sort'] == 'status')
$order = "ORDER BY p.status $orderSuffix";
else if(isset($_GET['sort']) && $_GET['sort'] == 'hot')
$order = "ORDER BY p.isHot $orderSuffix";
else if(isset($_GET['sort']) && $_GET['sort'] == 'new')
$order = "ORDER BY p.isNew $orderSuffix";
else if(isset($_GET['sort']) && $_GET['sort'] == 'featured')
$order = "ORDER BY p.isFeatured $orderSuffix";
else
$order = " ORDER BY p.status, pd.name $orderSuffix";
$arrDataList = $oProduct->lists($arrOperate, $LANGEUAGE_ID, $where, $order, $page, DISPLAY_DATA_SIZE, '');
$arrSearchType = array('id' => 'ID', 'name' => 'Name');
if($orderSuffix == 'ASC')
$orderSuffix = 'DESC';
else if($orderSuffix == 'DESC')
$orderSuffix = 'ASC';
/*----- out html -----*/
$smarty = new Smarty(); //----- out template
$smarty->template_dir = TEMPLATE_SYS_DIR;
$smarty->compile_dir = COMPILE_SYS_DIR;
$smarty->assign('error_message', $error_message);
$smarty->assign('menuGid', $menuGid);
$smarty->assign('menuid', $menuid);
$smarty->assign('arrSearchType', $arrSearchType);
$smarty->assign('searchTypeS', $searchType);
$smarty->assign('keyword', $keyword);
$smarty->assign('selfFileName', $selfFileName);
$smarty->assign('arrOperateInfo', $arrOperateInfo);
$smarty->assign('PAGE_BAR', $oProduct->pagenav);
$smarty->assign('arrDataList', $arrDataList);
$smarty->assign('checkPID', $checkPID);
$smarty->assign('orderSuffix', $orderSuffix);
$smarty->display('listProduct.htm');
?>
| 123gohelmetsv2 | trunk/admin/product/listProduct.php | PHP | asf20 | 3,447 |
<?php
include_once("../configure/admin.config.inc.php");//--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Operation.php"); //--> Operation
include_once("Product.php"); //--> Product
include_once("UploadFiles.php"); //--> UploadFiles
include_once("Files.php"); //--> Files
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation($objSession->getLanguage()); //--> Operation instance
$objProduct = new Product(DB_TAG_PUBLIC, $uid); //--> Product
$objFiles = new Files(DB_TAG_PUBLIC, $uid); //--> Files
$objUploadFiles = new UploadFiles(DB_TAG_PUBLIC, $uid); //--> UploadFiles
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(isset($_GET['id']) && !empty($_GET['id'])){
$id = $_GET['id'];
$isReturn = $objProduct->delete($arrOperate, $id, $LANGEUAGE_ID);
if($isReturn){
$objProduct->deleteRelated($arrOperate, $id);
$arrImages = $objProduct->getHash(DB_TAG_PUBLIC, "SELECT u.id, u.extName FROM upload_files u, product_images p WHERE u.id = p.imageID AND p.productID = $id AND type = " . UploadFiles::TYPE_IMAGE);
foreach($arrImages as $imageid => $extName){
$objProduct->deleteImage($arrOperate, $id, $imageid);
$filepath = PRODUCT_IMAGE_DIR . $objFiles->getDirByID($imageid) . '/' . $imageid . '.' . $extName;
if(file_exists($filepath)){
unlink($filepath);
$objUploadFiles->delete($arrOperate, $imageid);
echo 'delete picture success.<br>';
}
}
$error_message = 'delete successfully.';
}else
$error_message = 'delete failure.';
}
echo "<script language='javascript'>";
echo "alert(\"$error_message\");";
echo "location.href=\"".$_SERVER['HTTP_REFERER']."\";";
echo "</script>";
//$backurl = $_SERVER['HTTP_REFERER'];
//header("Location: $backurl");
?>
| 123gohelmetsv2 | trunk/admin/product/listProduct_Delete.php | PHP | asf20 | 1,893 |
<?php
/* explain: user login
* Project: aitony
* File: login.php
*
* @ link http://www.../admin/
* @ Email ldmmyx@hotmail.com
* @ copyright 2005 Ling Deming
* @ author Ivan.ling
* @ version 1.0
*/
/*----- import modules -----*/
//include_once ("../configure/configure.php"); //-- global var
include_once ("./configure/admin.config.inc.php"); //-- local var
include_once("Smarty.class.php"); //-- out template
include_once ("Users.php"); //-- user
include_once ("Session.php"); //-- Session
include_once ("Logs.php"); //-- logs
//if ($_SERVER["HTTPS"] <> "on")
//{
// $xredir="https://".$_SERVER["SERVER_NAME"]. $_SERVER["REQUEST_URI"];
// header("Location: ".$xredir);
//}
/*----- instance -----*/
$ins_user = new Users(0); //-- user
$ins_session = new Session(); //-- session
$ins_log = new Logs(0); //-- logs
if($ins_session->getLanguage() == "zh-CN"){
include_once("zh-CN.inc.php"); //--> zh_CN
}else{
include_once("en-US.inc.php"); //--> us_EN
}
if(isset($_POST['username'])){
$username = $_POST['username'];
$password = $_POST['password'];
$arrUserData = $ins_user->getFromName($username);
if($username == '')
$error_message = "the login name was empty."; //-- login name was empty
else if($password == '')
$error_message = "the login password was empty."; //-- login password was empty
else if(!is_array($arrUserData))
$error_message = $username." the login name was invalid.";
else if($arrUserData['status'] != 'normal') {//-- check use status
switch($arrUserData['status']){
case 'stop' : $error_message = $username." the login name be stoped."; break;
default : $error_message = $username." was invalid."; break;
}
}else if($arrUserData['password'] != md5($password)){
$mixback = $ins_log->funGetLoginLogTmp($username);
if(is_array($mixback)){
if(time() - strtotime($mixback['logintime']) > TIME_SPACE){
$ins_log->funModLoginLogTmp($username, date("Y-m-d H:i:s"),1);
$error_message = 'the login password of '.$username. ' was invalid.';
}else{
if($mixback['logincount'] >= LOGIN_LIMIT_COUNT)
$error_message = $username." try to login more times with error password. System will pause this login name for a day.";
else{
$ins_log->funModLoginLogTmp($username, $mixback['logintime'], $mixback['logincount'] + 1);
if($mixback['logincount'] < 3)
$error_message = 'the login password of '.$username. ' was invalid.'; //
else
$error_message = $username." use error password to login ".$mixback['logincount']." times. You has ".(LOGIN_LIMIT_COUNT-$mixback['logincount'])." times to try to login."; //--
}
}
}else{
$error_message = 'the login password of '.$username. ' was invalid.'; //--
$ins_log->funAddLoginLogTmp($username, date("Y-m-d H:i:s"), $_SERVER['REMOTE_ADDR']);
}
}else if(!$ins_user->checkUserSafe($arrUserData['id'])){ //--
$error_message = $username." was not passed security authentication."; //--
}
if(empty($error_message)){ //-- successfully login. write session
/*--- session share data ---*/
$arrUser=array();
$arrUser['gid'] =$arrUserData['groupid']; //--> add user groupid to session
$arrUser['uname'] =$arrUserData['name']; //--> add login name to session
$arrUser['lan'] = DEFAULT_LAN; //--> add default language to session
if(!$ins_session->exist()){
if(is_array($ins_session->start($arrUserData['id']))){
$tmpid = $ins_log->addLogin($arrUserData['id'],date('Y-m-d H:i:s'), $_SERVER['REMOTE_ADDR']);//----- login log
$arrUser['login_id']=$tmpid; //--- add login ID to session
$ins_session->add($arrUser);//--- add share data to session
$ins_log->addLoginStatistic($arrUserData['id'],date('Y'),date('n'),date('j'));//-- record login statistic
header("Location: ./index.php");
}else
echo "<script>javascript:alert(\"Login set failure. Please try to login again after that you reduse browser's security level. Any problems, Please contact administrater.\");window.location='./templates_en-US/login.htm';</script>";
}else{
header("Location: ./index.php");
}
exit();
}else
echo "<script>javascript:alert('$error_message');window.location='./login.php';</script>";
}
/*----- out html -----*/
$smarty = new Smarty(); //-- out template
$smarty->template_dir = TEMPLATE_SYS_DIR;
$smarty->compile_dir = COMPILE_SYS_DIR;
$smarty->display('login.htm');
?>
| 123gohelmetsv2 | trunk/admin/login.php | PHP | asf20 | 4,543 |
var cal;
var isFocus=false; //是否为焦点
function SelectDate(obj,strFormat)
{
var date = new Date();
var by = date.getFullYear()-50; //最小值 → 50 年前
var ey = date.getFullYear()+50; //最大值 → 50 年后
cal = (cal==null) ? new Calendar(by, ey, 1) : cal;
cal.dateFormatStyle = strFormat;
cal.show(obj);
}
String.prototype.toDate = function(style) {
var y = this.substring(style.indexOf('y'),style.lastIndexOf('y')+1);//年
var m = this.substring(style.indexOf('M'),style.lastIndexOf('M')+1);//月
var d = this.substring(style.indexOf('d'),style.lastIndexOf('d')+1);//日
if(isNaN(y)) y = new Date().getFullYear();
if(isNaN(m)) m = new Date().getMonth();
if(isNaN(d)) d = new Date().getDate();
var dt ;
eval ("dt = new Date('"+ y+"', '"+(m-1)+"','"+ d +"')");
return dt;
}
/**//**//**//**
* 格式化日期
* @param d the delimiter
* @param p the pattern of your date
* @author meizz
*/
Date.prototype.format = function(style) {
var o = {
"M+" : this.getMonth() + 1, //month
"d+" : this.getDate(), //day
"h+" : this.getHours(), //hour
"m+" : this.getMinutes(), //minute
"s+" : this.getSeconds(), //second
"w+" : "天一二三四五六".charAt(this.getDay()), //week
"q+" : Math.floor((this.getMonth() + 3) / 3), //quarter
"S" : this.getMilliseconds() //millisecond
}
if(/(y+)/.test(style)) {
style = style.replace(RegExp.$1,
(this.getFullYear() + "").substr(4 - RegExp.$1.length));
}
for(var k in o){
if(new RegExp("("+ k +")").test(style)){
style = style.replace(RegExp.$1,
RegExp.$1.length == 1 ? o[k] :
("00" + o[k]).substr(("" + o[k]).length));
}
}
return style;
};
function Calendar(beginYear, endYear, lang, dateFormatStyle) {
this.beginYear = 1990;
this.endYear = 2010;
this.lang = 1; //0(中文) | 1(英文)
this.dateFormatStyle = "yyyy-MM-dd";
if (beginYear != null && endYear != null){
this.beginYear = beginYear;
this.endYear = endYear;
}
if (lang != null){
this.lang = lang
}
if (dateFormatStyle != null){
this.dateFormatStyle = dateFormatStyle
}
this.dateControl = null;
this.panel = this.getElementById("calendarPanel");
this.container = this.getElementById("ContainerPanel");
this.form = null;
this.date = new Date();
this.year = this.date.getFullYear();
this.month = this.date.getMonth();
this.colors = {
"cur_word" : "#FFFFFF", //当日日期文字颜色
"cur_bg" : "#00FF00", //当日日期单元格背影色
"sel_bg" : "#FFCCCC", //已被选择的日期单元格背影色
"sun_word" : "#FF0000", //星期天文字颜色
"sat_word" : "#0000FF", //星期六文字颜色
"td_word_light" : "#333333", //单元格文字颜色
"td_word_dark" : "#CCCCCC", //单元格文字暗色
"td_bg_out" : "#EFEFEF", //单元格背影色
"td_bg_over" : "#FFCC00", //单元格背影色
"tr_word" : "#FFFFFF", //日历头文字颜色
"tr_bg" : "#666666", //日历头背影色
"input_border" : "#CCCCCC", //input控件的边框颜色
"input_bg" : "#EFEFEF" //input控件的背影色
}
this.draw();
this.bindYear();
this.bindMonth();
this.changeSelect();
this.bindData();
}
/**//**//**//**
* 日历类属性(语言包,可自由扩展)
*/
Calendar.language = {
"year" : [[""], [""]],
"months" : [["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],
["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"]
],
"weeks" : [["日","一","二","三","四","五","六"],
["SUN","MON","TUR","WED","THU","FRI","SAT"]
],
"clear" : [["清空"], ["CLS"]],
"today" : [["今天"], ["TODAY"]],
"close" : [["关闭"], ["CLOSE"]]
}
Calendar.prototype.draw = function() {
calendar = this;
var mvAry = [];
mvAry[mvAry.length] = ' <div name="calendarForm" style="margin: 0px;">';
mvAry[mvAry.length] = ' <table width="100%" border="0" cellpadding="0" cellspacing="1">';
mvAry[mvAry.length] = ' <tr>';
mvAry[mvAry.length] = ' <th align="left" width="1%"><input style="border: 1px solid ' + calendar.colors["input_border"] + ';background-color:' + calendar.colors["input_bg"] + ';width:16px;height:20px;" name="prevMonth" type="button" id="prevMonth" value="<" /></th>';
mvAry[mvAry.length] = ' <th align="center" width="98%" nowrap="nowrap"><select name="calendarYear" id="calendarYear" style="font-size:12px;"></select><select name="calendarMonth" id="calendarMonth" style="font-size:12px;"></select></th>';
mvAry[mvAry.length] = ' <th align="right" width="1%"><input style="border: 1px solid ' + calendar.colors["input_border"] + ';background-color:' + calendar.colors["input_bg"] + ';width:16px;height:20px;" name="nextMonth" type="button" id="nextMonth" value=">" /></th>';
mvAry[mvAry.length] = ' </tr>';
mvAry[mvAry.length] = ' </table>';
mvAry[mvAry.length] = ' <table id="calendarTable" width="100%" style="border:0px solid #CCCCCC;background-color:#FFFFFF" border="0" cellpadding="3" cellspacing="1">';
mvAry[mvAry.length] = ' <tr>';
for(var i = 0; i < 7; i++) {
mvAry[mvAry.length] = ' <th style="font-weight:normal;background-color:' + calendar.colors["tr_bg"] + ';color:' + calendar.colors["tr_word"] + ';">' + Calendar.language["weeks"][this.lang][i] + '</th>';
}
mvAry[mvAry.length] = ' </tr>';
for(var i = 0; i < 6;i++){
mvAry[mvAry.length] = ' <tr align="center">';
for(var j = 0; j < 7; j++) {
if (j == 0){
mvAry[mvAry.length] = ' <td style="cursor:default;color:' + calendar.colors["sun_word"] + ';"></td>';
} else if(j == 6) {
mvAry[mvAry.length] = ' <td style="cursor:default;color:' + calendar.colors["sat_word"] + ';"></td>';
} else {
mvAry[mvAry.length] = ' <td style="cursor:default;"></td>';
}
}
mvAry[mvAry.length] = ' </tr>';
}
mvAry[mvAry.length] = ' <tr style="background-color:' + calendar.colors["input_bg"] + ';">';
mvAry[mvAry.length] = ' <th colspan="2"><input name="calendarClear" type="button" id="calendarClear" value="' + Calendar.language["clear"][this.lang] + '" style="border: 1px solid ' + calendar.colors["input_border"] + ';background-color:' + calendar.colors["input_bg"] + ';width:100%;height:20px;font-size:12px;"/></th>';
mvAry[mvAry.length] = ' <th colspan="3"><input name="calendarToday" type="button" id="calendarToday" value="' + Calendar.language["today"][this.lang] + '" style="border: 1px solid ' + calendar.colors["input_border"] + ';background-color:' + calendar.colors["input_bg"] + ';width:100%;height:20px;font-size:12px;"/></th>';
mvAry[mvAry.length] = ' <th colspan="2"><input name="calendarClose" type="button" id="calendarClose" value="' + Calendar.language["close"][this.lang] + '" style="border: 1px solid ' + calendar.colors["input_border"] + ';background-color:' + calendar.colors["input_bg"] + ';width:100%;height:20px;font-size:12px;"/></th>';
mvAry[mvAry.length] = ' </tr>';
mvAry[mvAry.length] = ' </table>';
//mvAry[mvAry.length] = ' </from>';
mvAry[mvAry.length] = ' </div>';
this.panel.innerHTML = mvAry.join("");
var obj = this.getElementById("prevMonth");
obj.onclick = function () {calendar.goPrevMonth(calendar);}
obj.onblur = function () {calendar.onblur();}
this.prevMonth= obj;
obj = this.getElementById("nextMonth");
obj.onclick = function () {calendar.goNextMonth(calendar);}
obj.onblur = function () {calendar.onblur();}
this.nextMonth= obj;
obj = this.getElementById("calendarClear");
obj.onclick = function () {calendar.dateControl.value = "";calendar.hide();}
this.calendarClear = obj;
obj = this.getElementById("calendarClose");
obj.onclick = function () {calendar.hide();}
this.calendarClose = obj;
obj = this.getElementById("calendarYear");
obj.onchange = function () {calendar.update(calendar);}
obj.onblur = function () {calendar.onblur();}
this.calendarYear = obj;
obj = this.getElementById("calendarMonth");
with(obj)
{
onchange = function () {calendar.update(calendar);}
onblur = function () {calendar.onblur();}
}this.calendarMonth = obj;
obj = this.getElementById("calendarToday");
obj.onclick = function () {
var today = new Date();
calendar.date = today;
calendar.year = today.getFullYear();
calendar.month = today.getMonth();
calendar.changeSelect();
calendar.bindData();
calendar.dateControl.value = today.format(calendar.dateFormatStyle);
calendar.hide();
}
this.calendarToday = obj;
}
//年份下拉框绑定数据
Calendar.prototype.bindYear = function() {
//var cy = this.form.calendarYear;
var cy = this.calendarYear;
cy.length = 0;
for (var i = this.beginYear; i <= this.endYear; i++){
cy.options[cy.length] = new Option(i + Calendar.language["year"][this.lang], i);
}
}
//月份下拉框绑定数据
Calendar.prototype.bindMonth = function() {
//var cm = this.form.calendarMonth;
var cm = this.calendarMonth;
cm.length = 0;
for (var i = 0; i < 12; i++){
cm.options[cm.length] = new Option(Calendar.language["months"][this.lang][i], i);
}
}
//向前一月
Calendar.prototype.goPrevMonth = function(e){
if (this.year == this.beginYear && this.month == 0){return;}
this.month--;
if (this.month == -1) {
this.year--;
this.month = 11;
}
this.date = new Date(this.year, this.month, 1);
this.changeSelect();
this.bindData();
}
//向后一月
Calendar.prototype.goNextMonth = function(e){
if (this.year == this.endYear && this.month == 11){return;}
this.month++;
if (this.month == 12) {
this.year++;
this.month = 0;
}
this.date = new Date(this.year, this.month, 1);
this.changeSelect();
this.bindData();
}
//改变SELECT选中状态
Calendar.prototype.changeSelect = function() {
//var cy = this.form.calendarYear;
//var cm = this.form.calendarMonth;
var cy = this.calendarYear;
var cm = this.calendarMonth;
for (var i= 0; i < cy.length; i++){
if (cy.options[i].value == this.date.getFullYear()){
cy[i].selected = true;
break;
}
}
for (var i= 0; i < cm.length; i++){
if (cm.options[i].value == this.date.getMonth()){
cm[i].selected = true;
break;
}
}
}
//更新年、月
Calendar.prototype.update = function (e){
//this.year = e.form.calendarYear.options[e.form.calendarYear.selectedIndex].value;
//this.month = e.form.calendarMonth.options[e.form.calendarMonth.selectedIndex].value;
this.year = e.calendarYear.options[e.calendarYear.selectedIndex].value;
this.month = e.calendarMonth.options[e.calendarMonth.selectedIndex].value;
this.date = new Date(this.year, this.month, 1);
this.changeSelect();
this.bindData();
}
//绑定数据到月视图
Calendar.prototype.bindData = function () {
var calendar = this;
var dateArray = this.getMonthViewArray(this.date.getYear(), this.date.getMonth());
var tds = this.getElementById("calendarTable").getElementsByTagName("td");
for(var i = 0; i < tds.length; i++) {
//tds[i].style.color = calendar.colors["td_word_light"];
tds[i].style.backgroundColor = calendar.colors["td_bg_out"];
tds[i].onclick = function () {return;}
tds[i].onmouseover = function () {return;}
tds[i].onmouseout = function () {return;}
if (i > dateArray.length - 1) break;
tds[i].innerHTML = dateArray[i];
if (dateArray[i] != " "){
tds[i].onclick = function () {
if (calendar.dateControl != null){
calendar.dateControl.value = new Date(calendar.date.getFullYear(),
calendar.date.getMonth(),
this.innerHTML).format(calendar.dateFormatStyle);
}
calendar.hide();
}
tds[i].onmouseover = function () {
this.style.backgroundColor = calendar.colors["td_bg_over"];
}
tds[i].onmouseout = function () {
this.style.backgroundColor = calendar.colors["td_bg_out"];
}
if (new Date().format(calendar.dateFormatStyle) ==
new Date(calendar.date.getFullYear(),
calendar.date.getMonth(),
dateArray[i]).format(calendar.dateFormatStyle)) {
//tds[i].style.color = calendar.colors["cur_word"];
tds[i].style.backgroundColor = calendar.colors["cur_bg"];
tds[i].onmouseover = function () {
this.style.backgroundColor = calendar.colors["td_bg_over"];
}
tds[i].onmouseout = function () {
this.style.backgroundColor = calendar.colors["cur_bg"];
}
//continue; //若不想当天单元格的背景被下面的覆盖,请取消注释
}//end if
if (calendar.dateControl != null && calendar.dateControl.value == new Date(calendar.date.getFullYear(),
calendar.date.getMonth(),
dateArray[i]).format(calendar.dateFormatStyle)) {
tds[i].style.backgroundColor = calendar.colors["sel_bg"];
tds[i].onmouseover = function () {
this.style.backgroundColor = calendar.colors["td_bg_over"];
}
tds[i].onmouseout = function () {
this.style.backgroundColor = calendar.colors["sel_bg"];
}
}
}
}
}
//根据年、月得到月视图数据(数组形式)
Calendar.prototype.getMonthViewArray = function (y, m) {
var mvArray = [];
var dayOfFirstDay = new Date(y, m, 1).getDay();
var daysOfMonth = new Date(y, m + 1, 0).getDate();
for (var i = 0; i < 42; i++) {
mvArray[i] = " ";
}
for (var i = 0; i < daysOfMonth; i++){
mvArray[i + dayOfFirstDay] = i + 1;
}
return mvArray;
}
//扩展 document.getElementById(id) 多浏览器兼容性 from meizz tree source
Calendar.prototype.getElementById = function(id){
if (typeof(id) != "string" || id == "") return null;
if (document.getElementById) return document.getElementById(id);
if (document.all) return document.all(id);
try {return eval(id);} catch(e){ return null;}
}
//扩展 object.getElementsByTagName(tagName)
Calendar.prototype.getElementsByTagName = function(object, tagName){
if (document.getElementsByTagName) return document.getElementsByTagName(tagName);
if (document.all) return document.all.tags(tagName);
}
//取得HTML控件绝对位置
Calendar.prototype.getAbsPoint = function (e){
var x = e.offsetLeft;
var y = e.offsetTop;
while(e = e.offsetParent){
x += e.offsetLeft;
y += e.offsetTop;
}
return {"x": x, "y": y};
}
//显示日历
Calendar.prototype.show = function (dateObj, popControl) {
if (dateObj == null){
throw new Error("arguments[0] is necessary")
}
this.dateControl = dateObj;
this.date = (dateObj.value.length > 0) ? new Date(dateObj.value.toDate(this.dateFormatStyle)) : new Date()
this.year = this.date.getFullYear();
this.month = this.date.getMonth();
this.changeSelect();
this.bindData();
//}
if (popControl == null){
popControl = dateObj;
}
var xy = this.getAbsPoint(popControl);
this.panel.style.left = xy.x -25 + "px";
this.panel.style.top = (xy.y + dateObj.offsetHeight) + "px";
this.panel.style.display = "";
this.container.style.display = "";
dateObj.onblur = function(){calendar.onblur();}
this.container.onmouseover = function(){isFocus=true;}
this.container.onmouseout = function(){isFocus=false;}
}
//隐藏日历
Calendar.prototype.hide = function() {
//this.setDisplayStyle("select", "visible");
//this.panel.style.visibility = "hidden";
//this.container.style.visibility = "hidden";
this.panel.style.display = "none";
this.container.style.display = "none";
isFocus=false;
}
Calendar.prototype.onblur = function() {
if(!isFocus){this.hide();}
}
document.write('<div id="ContainerPanel" style="display:none"><div id="calendarPanel" style="position: absolute;display: none;z-index: 9999;');
document.write('background-color: #FFFFFF;border: 1px solid #CCCCCC;width:175px;font-size:12px;"></div>');
if(document.all)
{
document.write('<iframe style="position:absolute;z-index:2000;width:expression(this.previousSibling.offsetWidth);');
document.write('height:expression(this.previousSibling.offsetHeight);');
document.write('left:expression(this.previousSibling.offsetLeft);top:expression(this.previousSibling.offsetTop);');
document.write('display:expression(this.previousSibling.style.display);" scrolling="no" frameborder="no"></iframe>');
}
document.write('</div>');
//调用calendar.show(dateControl, popControl); | 123gohelmetsv2 | trunk/admin/js/calender.js | JavaScript | asf20 | 17,212 |
function Window()
{
this.commonPop = popWin;
}
function popWin(theURL,winName,theW,theH,showAsModal) {
theTop = (window.screen.height-theH)/2;
theLeft = (window.screen.width-theW)/2;
var features = "toolbar=0,scrollbars=yes,left=" + theLeft + ",top=" + theTop + ",width=" + theW + ",height=" + theH;
window.SubWin = window.open(theURL,winName,features);
window.SubWin.focus();
if(showAsModal){
window.CtrlsDisabled = new Array();
DisableCtrls("INPUT;SELECT;TEXTAREA;BUTTON");
}
function DisableCtrls(tagNameStr){
var arrTags = tagNameStr.split(";");
for(var i=0;i<arrTags.length;i++){
var arrEle = document.getElementsByTagName(arrTags[i]);
PushToCtrlsDisabled(arrEle);
}
for(var i=0;i<window.CtrlsDisabled.length;i++){
window.CtrlsDisabled[i].disabled = true;
window.CtrlsDisabled[i].readOnly = true;
}
}
function PushToCtrlsDisabled(arrEle){
for(var i=0;i<arrEle.length;i++){
if(!arrEle[i].disabled){
window.CtrlsDisabled.push(arrEle[i]);
}
}
}
window.onfocus = function(){
if(window.SubWin && showAsModal){
if(window.SubWin.closed == true || typeof(window.SubWin.closed) == "undefined"){
for(var i=0;i<window.CtrlsDisabled.length;i++){
window.CtrlsDisabled[i].disabled = false;
window.CtrlsDisabled[i].readOnly = false;
}
}else{
window.SubWin.focus();
}
}
}
} | 123gohelmetsv2 | trunk/admin/js/Window.js | JavaScript | asf20 | 1,636 |
/* 文档说明-->WEB前台验证的类
*
* @link http://...
* @copyright 2005 Ling Deming
* @author gaby <ldmmyx@hotmail.com>
* @version 1.0
*/
/* 验证对象的构造函数
*
*/
function Validation()
{
this.errorInfo = ''; //-- 函数返回的错误信息
this.isNumber = isNumber; //-- 判断是否是数字的方法
this.isEmail = isEmail; //-- 判断是否是Email地址的方法
this.isUrl = isUrl; //-- 判断是否是网址的方法
this.isDate = isDate; //-- 判断是否是日期
this.isChinese = isChinese; //-- 判断是否是中文
this.isEmpty = isEmpty; //--
this.isEmailEN = isEmailEN; //--
this.isCompare = isCompare; //-- 比较两个字串的长度和是否相等,一般用在密码比较
this.isMobile = isMobile; //-- 判断是否手机号码(简单的测试)
this.strCheckMobile = strCheckMobile; //-- 判断是否手机号码(简单的测试)
this.validFloat = validFloat; //-- 判断是否是数字和小数位数限制
this.isConfirmOperate = isConfirmOperate ;
this.isCompareEN = isCompareEN; //-- 比较两个字串的长度和是否相等,一般用在密码比较
}
/* 判断是否是数字
*
* @param string inputObject ← 要判断的对象
* @param string labelName ← 显示要判断的对象的名字相关的信息
* @param return boolean ← true: 是数字 false: 不是数字
*/
function isNumber(objectID,labelName, allowEmpty)
{
if(allowEmpty != undefined){
if(document.getElementById(objectID).value == ''){
return true;
}
}
if(labelName == undefined)
labelName='';
if(document.getElementById(objectID).value == ''){
alert(labelName+" isn't number.");
document.getElementById(objectID).focus();
return false;
}else if(document.getElementById(objectID).value.match('^[0-9]{1,}$'))
return true;
else{
alert(labelName+" isn't number.");
document.getElementById(objectID).focus();
return false;
}
}
/* 判断是否是email地址
*
* @param string inputObject ← 要判断的对象
* @param string labelName ← 显示要判断的对象的名字相关的信息
* @param string allowEmpty ← 是否允许空值,不定义是不允许
* @param return boolean ← true: 是email地址 false: 不是email地址
*/
function isEmail(objectID,labelName,allowEmpty)
{
if(allowEmpty != undefined){
if(document.getElementById(objectID).value == ''){
return true;
}
}
if(labelName == undefined)
labelName='';
if(document.getElementById(objectID).value == ''){
alert(labelName+'请输入Email地址!');
document.getElementById(objectID).focus();
return false;
}else if (document.getElementById(objectID).value.match("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$"))
return true;
else{
alert(labelName+'输入的不是正确的Email地址!');
document.getElementById(objectID).focus();
return false;
}
}
/* 判断是否是email地址
*
* @param string inputObject ← 要判断的对象
* @param string labelName ← 显示要判断的对象的名字相关的信息
* @param string allowEmpty ← 是否允许空值,不定义是不允许
* @param return boolean ← true: 是email地址 false: 不是email地址
*/
function isEmailEN(objectID,labelName,allowEmpty)
{
if(allowEmpty != undefined){
if(document.getElementById(objectID).value == ''){
return true;
}
}
if(labelName == undefined)
labelName='';
if(document.getElementById(objectID).value == ''){
alert(labelName+' is required.');
document.getElementById(objectID).focus();
return false;
}else if (document.getElementById(objectID).value.match("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$"))
return true;
else{
alert(labelName+' is invalid.');
document.getElementById(objectID).focus();
return false;
}
}
/* 判断是否是网址
*
* @param string inputObject ← 要判断的对象
* @param string labelName ← 显示要判断的对象的名字相关的信息
* @param string DefaulValue ← 设默认值,有默认值时对象的值和默认值相同返回真,不定义时进行验证
* @param return boolean ← true: 是网址 false: 不是网址
*/
function isUrl(objectID,labelName,DefaulValue)
{
if(labelName == undefined)
labelName='';
if(DefaulValue != undefined){
if(document.getElementById(objectID).value == DefaulValue){
return true;
}
}
if(document.getElementById(objectID).value == ''){
alert(labelName+'请输入网址!');
document.getElementById(objectID).focus();
return false;
}else if (document.getElementById(objectID).value.match('^http:\/\/[a-z0-9@:%_.~#-\?&]+$'))
return true;
else{
alert(labelName+'输入的不是正确的网址!');
document.getElementById(objectID).focus();
return false;
}
}
/* 判断是否是中文
*
* @param string inputObject ← 要判断的对象
* @param string labelName ← 显示要判断的对象的名字相关的信息
* @param string yesVSno ← 要判断的是不是中文,默认是
* @param return boolean ← true: 是中文 false: 不是中文
*/
function isChinese(objectID,labelName,yesVSno)
{
if(labelName == undefined)
labelName='';
if(yesVSno == undefined)
yesVSno='yes';
if(document.getElementById(objectID).value == ''){
if(yesVSno == 'yes')
alert(labelName+'请输入中文字符!');
else
alert(labelName+'请输入不包含中文的字符!');
document.getElementById(objectID).focus();
return false;
}else if (document.getElementById(objectID).value.replace(/[ -}]/g,'')){
if(yesVSno == 'no'){
alert(labelName+'输入的字符中有中文字符!');
document.getElementById(objectID).focus();
return false;
}else
return true;
}else{
if(yesVSno == 'yes'){
alert(labelName+'输入的不是中文!');
document.getElementById(objectID).focus();
return false;
}else
return true;
}
}
/* 判断是否是日期 格式 yyyy-mm-dd
*
* @param string inputObject ← 要判断的对象
* @param string labelName ← 显示要判断的对象的名字相关的信息
* @param return boolean ← true: 是日期 false: 不是日期
*/
function isDate(objectID,labelName)
{
if(labelName == undefined)
labelName='';
if(document.getElementById(objectID).value == ''){
alert(labelName+'请输入日期!');
document.getElementById(objectID).focus();
return false;
}else if (document.getElementById(objectID).value.match("[0-2][0-9][0-9][0-9]-[01][0-9]-[0-3][0-9]")){
if(parseInt(document.getElementById(objectID).value.substr(5,2))>12){
alert(labelName+'输入的日期月份不对!');
document.getElementById(objectID).focus();
return false;
}else if(parseInt(document.getElementById(objectID).value.substr(8,2))>31){
alert(labelName+'输入的日期天数不对!');
document.getElementById(objectID).focus();
return false;
}else
return true;
}else{
alert(labelName+'输入的不是正确的日期格式!格式:yyyy-mm-dd');
document.getElementById(objectID).focus();
return false;
}
}
/* 判断是否为空
*
* @param string inputObject ← 要判断的对象
* @param string labelName ← 显示要判断的对象的名字相关的信息
* @param string limitLength ← 限制长度的大小
* @param return boolean ← true: 是空 false: 不为空
*/
function isEmpty(objectID,labelName, limitLength)
{
if(labelName == undefined)
labelName='';
if(document.getElementById(objectID).value == ''){
alert(labelName+" is required.");
document.getElementById(objectID).focus();
return true;
}else if(limitLength != undefined){
if(document.getElementById(objectID).value.length > limitLength){
alert(labelName + ' length more than' + limitLength + " char.");
document.getElementById(objectID).focus();
return true;
}else
return false;
}else
return false;
}
/* 比较两个字串的长度和是否相等,一般用在密码比较
*
* @param string inputObject1 ← 要比较的对象1
* @param string inputObject2 ← 要比较的对象2
* @param string downLength ← 限定下限长度
* @param string topLength ← 限定上限长度
* @param string labelName ← 显示要判断的对象的名字相关的信息
* @param return boolean ← true: 一致 false: 不同
*/
function isCompare(objectID1,objectID2,labelName,downLength,topLength)
{
if(labelName == undefined)
labelName='';
if(document.getElementById(objectID1).value == ''){
alert(labelName+'不能为空!');
document.getElementById(objectID1).focus();
return false;
}
if(downLength != undefined && downLength != 0){
if(document.getElementById(objectID1).value.length < downLength){
alert(labelName+'需要输入至少'+downLength+'个字符!');
document.getElementById(objectID1).focus();
return false;
}
}
if(topLength != undefined && topLength != 0){
if(document.getElementById(objectID2).value.length > topLength){
alert(labelName+'不能输入大于'+topLength+'个字符!');
document.getElementById(objectID2).focus();
return false;
}
}
if(document.getElementById(objectID1).value != document.getElementById(objectID2).value){
alert(labelName+'两次输入不相同!');
document.getElementById(objectID1).focus();
return false;
}else
return true;
}
/* 比较两个字串的长度和是否相等,一般用在密码比较
*
* @param string inputObject1 ← 要比较的对象1
* @param string inputObject2 ← 要比较的对象2
* @param string downLength ← 限定下限长度
* @param string topLength ← 限定上限长度
* @param string labelName ← 显示要判断的对象的名字相关的信息
* @param return boolean ← true: 一致 false: 不同
*/
function isCompareEN(objectID1,objectID2,labelName,downLength,topLength)
{
if(labelName == undefined)
labelName='';
if(document.getElementById(objectID1).value == ''){
alert(labelName+' should not be empty.');
document.getElementById(objectID1).focus();
return false;
}
if(downLength != undefined && downLength != 0){
if(document.getElementById(objectID1).value.length < downLength){
alert(labelName+' can not less than '+downLength+' char.');
document.getElementById(objectID1).focus();
return false;
}
}
if(topLength != undefined && topLength != 0){
if(document.getElementById(objectID2).value.length > topLength){
alert(labelName+' can not more than '+topLength+' char.');
document.getElementById(objectID2).focus();
return false;
}
}
if(document.getElementById(objectID1).value != document.getElementById(objectID2).value){
alert(labelName+' input is differece with two times.');
document.getElementById(objectID1).focus();
return false;
}else
return true;
}
/* 判断是否为手机号码(包括小灵通,只能进行简单的测试)
*
* @param string inputObject ← 要判断的对象
* @param string labelName ← 显示要判断的对象的名字相关的信息
* @param return boolean ← true: 是空 false: 不为空
*/
function isMobile(objectID,labelName)
{
if(labelName == undefined)
labelName='';
var strValue = document.getElementById(objectID).value;
if(strValue == ''){
alert(labelName+'不能为空!');
document.getElementById(objectID).focus();
return false;
}else if(!strValue.match('^[0-9]{1,}$')){
alert(labelName+'不是数字!');
return false;
}else if((strValue.substr(0,2) == "13") || (strValue.substr(0,2) == "15")){
if(strValue.length == 11){
return true;
}else{
alert(labelName+'位数不对!');
return false;
}
}else if(strValue.substring(0,1) == "0"){
if(strValue.length > 9){
return true;
}else{
alert(labelName + '位数不对!');
return false;
}
}else{
alert("请输入正确的" + labelName);
return false;
}
}
/* 判断手机号码所属运营商
*
* @param string mobile ← 要判断的手机号码
* @param return boolean ← true: 是空 false: 不为空
*/
function strCheckMobile(strMobile)
{
if(strMobile == "")
return "em"; //-- 为空
if(strMobile.match("^13[0-3]{1}[0-9]{8}$")){
return "cu"; //-- 联通号码
}else if(strMobile.match("^13[4-9]{1}[0-9]{8}$")){
return "cm"; //-- 移动号码
}else if(strMobile.match("^0[1-9]{1}") && strMobile.length > 9){
return "phs"; //-- 小灵通号码
}else
return "no"; //-- 不是手机
}
/* 判断输入值是否数字和位数
*
* @param string inputObject ← 要判断的对象
* @param string labelName ← 显示要判断的对象的名字相关的信息
* @param string digit ← 限制的位数
* @param return boolean ← true: 输入正确 false: 输入不正确
*/
function validFloat(objectID, labelName, digit)
{
if(isNaN(document.getElementById(objectID).value)){
alert("请输入有效数字");
document.getElementById(objectID).focus();
return false;
}
if(!checkDecimal(document.getElementById(objectID).value, digit)){
alert("您输入的数据小数位最多为" + digit + "个小数位");
document.getElementById(objectID).focus();
return false;
}
return true;
}
/* 检查小数位数
*
* @param string num ← 要检查的值
* @param string decimalLen ← 限制的位数
* @param return boolean ← true: 输入正确 false: 输入不正确
*/
function checkDecimal(num,decimalLen)
{
var len = decimalLen*1+1;
if(num.indexOf('.')>0){
num=num.substr(num.indexOf('.')+1,num.length-1);
if ((num.length)<len){
return true;
}else{
return false;
}
}
return true;
}
function isConfirmOperate(operate)
{
if(confirm("Your confirm to continue the " + operate + " operation ?"))
return true;
else
return false;
}
var validDefault = new Validation();
| 123gohelmetsv2 | trunk/admin/js/Validation.js | JavaScript | asf20 | 14,330 |
<html>
<head>
<TITLE>Intenal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
<form name="form1" method="get" action="">
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="5" align="left">
<font color="#FF0000">Keyword :
<input name="keyword" type="text" id="keyword" value="{$keyword}" size="60" maxlength="60" style="height:22px; margin-bottom:2px;">
<select name="searchType" style="height:22px; margin-top:0px;">
{html_options options=$arrSearchType selected=$searchTypeS}
</select>
<input type="submit" name="Submit" value="Search"></font>
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
</td>
<td width="5%" align="right"> </td>
</tr>
</form>
<tr bgcolor="#E4E4E4">
<td width="5%">ID</td>
<td width="20%">Name</td>
<td width="20%">email</td>
<td width="35%">Account Created</td>
<td width="20%">Operation | <b><a href="listCustomer_Add.php?menuGid={$menuGid}&menuid={$menuid}"></a></b></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="4" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td> {$data.id}</td>
<td > {$data.firstname} {$data.lastname}</td>
<td> {$data.email}</td>
<td> {$data.createdTime}</td>
<td>
<a href="../orders/listOrders.php?menuGid={$menuGid}&menuid=44&id={$data.id}">Orders</a>
|
{section name=opItem loop=$arrOperateInfo}
{if $smarty.section.opItem.index != 0}
|
{/if}
<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
{/section}</td>
</tr>
{/foreach}
</table>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="left" width="60%">{$PAGE_BAR}</td>
<td align="right" width="40%"></td>
</tr>
</table>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listCustomer.htm | HTML | asf20 | 2,752 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<body bgcolor="#FFFFFF" text="#000000"><form name="fm" method="get" action="">
<table width="100%" cellspacing="1" cellpadding="4">
<tr>
<td colspan="7" align="left">
<label>User ID: <input name="keyword" type="text" id="keyword" value="{$keyword}" />
<input type="submit" name="Submit" id="Submit" value="Search" onclick="return !validDefault.isEmpty('keyword','Keyword')" />
</label> </td>
</tr>
<tr bgcolor="#E4E4E4">
<td width="30%"> User Name</td>
<td width="30%"> Date</td>
<td width="40%"> Times</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="5" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td> {$data.username}</td>
<td> {$data.intYear}-{$data.intMonth}-{$data.intDay}</td>
<td> {$data.counts}</td>
</tr>
{/foreach}
</table><input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}"></form>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="center">{$PAGE_BAR}</td>
</tr>
</table>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listLoginStatistic.htm | HTML | asf20 | 1,717 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<body bgcolor="#FFFFFF" text="#000000"><form name="fm" method="get" action="">
<table width="100%" cellspacing="1" cellpadding="4">
<tr>
<td colspan="7" align="left">
<label>User ID: <input name="keyword" type="text" id="keyword" value="{$keyword}" />
<input type="submit" name="Submit" id="Submit" value="Search" onclick="return !validDefault.isEmpty('keyword','Keyword')" />
</label> </td>
</tr>
<tr bgcolor="#E4E4E4">
<td width="10%" align="center">ID</td>
<td width="20%"> User Name</td>
<td width="20%"> Method</td>
<td width="10%"> Action</td>
<td width="30%"> Comments</td>
<td width="10%" align="center">Time</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="5" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="center">{$data.id}</td>
<td> {$data.username}</td>
<td> {$data.method}</td>
<td> {$data.operation}</td>
<td> {$data.comments}</td>
<td> {$data.addTime}</td>
</tr>
{/foreach}
</table><input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}"></form>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="center">{$PAGE_BAR}</td>
</tr>
</table>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listOperateLog.htm | HTML | asf20 | 1,932 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
if (valid.isEmpty("name","Menu name")){
return false;
}else if (valid.isEmpty("orders","Order number")){
return false;
}else if (valid.isEmpty("menuUrl","Menu url")){
return false;
}else if (valid.isEmpty("groupid","Menu group")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="20%">Edit Menu</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Name:</td>
<td colspan="2">
<input name="name" id="name" type="text" value="{$name}">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Order:</td>
<td colspan="2" >
<input name="orders" id="orders" type="text" value="{$orders}">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">URL:</td>
<td height="23" colspan="2">
<input name="menuUrl" id="menuUrl" type="text" value="{$menuUrl}" size="60">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td width="17%" align="right">Summary:</td>
<td width="83%" colspan="2">
<input name="menuRemark" type="text" value="{$menuRemark}" size="60"> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Menu Group:</td>
<td height="23" colspan="2"><select name="groupid" id="groupid">{html_options options=$arrMenuGroup selected=$groupidS}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"> </td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="id" type="hidden" id="id" value="{$id}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listMenu_Edit.htm | HTML | asf20 | 3,547 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
if (valid.isEmpty("menuName","Menu group name")){
return false;
}else if (valid.isEmpty("orders","Order number")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000" style="margin:0px;padding:0px;">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="20%">Edit Menu Group</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Name:</td>
<td colspan="2">
<input name="menuGroupName" type="text" id="menuGroupName" value="{$menuGroupName}" size="25" maxlength="40">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Order:</td>
<td colspan="3"><input name="orders" id="orders" type="text" value="{$orders}">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td width="17%"> </td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="id" type="hidden" id="id" value="{$id}"> <input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listMenuGroup_edit.htm | HTML | asf20 | 2,380 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="5%">ID</td>
<td width="30%">Subject</td>
<td width="45%">Your Name</td>
<td width="10%">Status</td>
<td width="10%">Operation | <b><a href="listQA_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="3" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td>{$data.id}</td>
<td>{$data.subject}</td>
<td>{$data.yourName}</td>
<td>{$data.status}</td>
<td>{section name=opItem loop=$arrOperateInfo}
{if $smarty.section.opItem.index != 0}
|
{/if}
<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
{/section}</td>
</tr>
{/foreach}
</table>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="left" width="60%">{$PAGE_BAR}</td>
<td align="center" width="40%"></td>
</tr>
</table>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listQA.htm | HTML | asf20 | 1,804 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
{literal}
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
var theform = window.document.form1
if (valid.isEmpty("name"," name")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="2">
<tr bgcolor="#E4E4E4">
<td width="20%"> Add Merchant</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Name:</td>
<td colspan="2">
<input name="name" type="text" id="name" value="{$name}" maxlength="20">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">URL:</td>
<td colspan="2">
<input name="url" type="text" id="url" value="{$url}" size="40" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Description:</td>
<td colspan="2">
<input name="summary" type="text" id="summary" value="{$summary}" size="50" maxlength="10"><font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"></td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listMerchant_Add.htm | HTML | asf20 | 2,674 |
<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
<form name="form1" method="get" action="">
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="5" align="left">
<font color="#FF0000">Keyword :
<input name="keyword" type="text" id="keyword" value="{$keyword}" size="60" maxlength="60" style="height:22px; margin-bottom:2px;">
<select name="searchType" style="height:22px; margin-top:0px;">
{html_options options=$arrSearchType selected=$searchTypeS}
</select>
<input type="submit" name="Submit" value="Search"></font>
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
</td>
<td width="5%" align="right"> </td>
</tr>
</form>
<tr bgcolor="#E4E4E4">
<td width="5%">ID</td>
<td width="20%">Customers</td>
<td width="20%">Amount</td>
<td width="20%">Date Purchased</td>
<td width="10%">Status</td>
<td width="25%">Operation | <b><a href="listOrders_Add.php?menuGid={$menuGid}&menuid={$menuid}"></a></b></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="4" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td> {$data.id}</td>
<td > {$data.customers_name}</td>
<td> ${$data.amount / 100}</td>
<td> {$data.datePurchased}</td>
<td> {$data.status}</td>
<td>
<a href="listOrders_Invoice.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" onClick="return validDefault.isConfirmOperate('Invoice')" target="_blank">Invoice</a>
|
{section name=opItem loop=$arrOperateInfo}
{if $smarty.section.opItem.index != 0}
|
{/if}
<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
{/section}</td>
</tr>
{/foreach}
</table>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="left" width="60%">{$PAGE_BAR}</td>
<td align="right" width="40%"></td>
</tr>
</table>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listOrders.htm | HTML | asf20 | 2,991 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
if (valid.isEmpty("name","Class name")){
return false;
}else if (valid.isEmpty("parentid","Parent class")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="20%">Add Category </td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Name:</td>
<td colspan="2">
<input name="name" id="name" type="text" value="{$name}">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Sort:</td>
<td colspan="2">
<input name="sorts" id="sorts" type="text" value="{$sorts}">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Parent Class:</td>
<td height="23" colspan="2"><select name="parentid" id="perentid">{html_options options=$arrParentid selected=$parentidS}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Is Leaf:</td>
<td height="23" colspan="2"> {html_radios name="isLeaf" options=$arrIsLeaf checked=$isLeafS separator=" "}</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Summary:</td>
<td height="23" colspan="2"><textarea name="summary" id="summary" cols="45" rows="5">{$summary}</textarea></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" width="17%"> </td>
<td width="83%" height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listInfoClass_Add.htm | HTML | asf20 | 3,276 |
<html>
<head>
<title>info detail</title>
<LINK href="../css/style.css" type=text/css rel=stylesheet>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
<div style="padding-top:5px">
<table width="96%" height="95%" border=0 align="center" cellpadding=5 cellspacing=0>
<tr>
<td align="left" valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#333333" bgcolor="#CCCCCC">
<tr height=20 bgcolor="#E4E4E4">
<td width="10%" height="25" align="right"> Last Name : </td>
<td width="80%" align="left">{$arrInfo.lastname}</td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr height=20 bgcolor="#FFFFFF">
<td height="25" align="right"> First Name : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$arrInfo.firstname}</font></td>
</tr>
<tr height=20 bgcolor="#FFFFFF">
<td height="25" align="right"> gender : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$arrInfo.gender}</font></td>
</tr>
<tr height=20 bgcolor="#FFFFFF">
<td height="25" align="right"> Email : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$arrInfo.email}</font></td>
</tr>
<tr height=20 bgcolor="#FFFFFF">
<td height="25" align="right"> Telephone : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$arrInfo.telephone}</font></td>
</tr>
<tr height=20 bgcolor="#FFFFFF">
<td height="25" align="right"> Fax : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$arrInfo.fax}</font></td>
</tr>
<tr height=20 bgcolor="#FFFFFF">
<td height="25" align="right"> Newsletter : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$arrInfo.newsletter}</font></td>
</tr>
<tr height=20 bgcolor="#FFFFFF">
<td height="25" align="right"> Date Added : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$arrInfo.createdTime}</font></td>
</tr>
<tr height=20 bgcolor="#FFFFFF">
<td height="25" align="right"> Last Modified : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$arrInfo.modifiedTime}</font></td>
</tr>
</table>
</td>
</tr>
</table></div>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listCustomer_View.htm | HTML | asf20 | 3,301 |
<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="5%">ID</td>
<td width="5%">Sort</td>
<td width="5%">Level</td>
<td width="20%">Name</td>
<td width="10%">Is Leaf</td>
<td width="45%">Summary</td>
<td width="10%">Operation | <b><a href="listAttributes_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="4" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td>{$data.id}</td>
<td>{$data.sorts}</td>
<td>{$data.level}</td>
<td>{$data.name}</td>
<td>{$data.isLeaf}</td>
<td>{$data.summary}</td>
<td>{section name=opItem loop=$arrOperateInfo}
{if $smarty.section.opItem.index != 0}
|
{/if}
<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
{/section}</td>
</tr>
{/foreach}
</table>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="left" width="80%">{$PAGE_BAR}</td>
<td align="center" width="20%"></td>
</tr>
</table>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listAttributes.htm | HTML | asf20 | 1,819 |
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="ltr" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<title>Internal System</title>
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
<!-- body_text //-->
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading">
{$myStore.values|nl2br}
</td>
<td class="pageHeading" align="right"><img src="../images/logo_smarter.gif" border="0" alt="{$HOME_URL}" title=" {$HOME_URL} "></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td colspan="2"><img src="../images/pixel_black.gif" border="0" alt="" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><b>SOLD TO:</b></td>
</tr>
<tr>
<td class="main">
{$arrOrders.billing_name}<br> {$arrOrders.billing_street}<br> {$arrOrders.billing_city}, {$arrOrders.billing_state} {$arrOrders.billing_postcode}<br> {$arrOrders.billing_country}
</td>
</tr>
<tr>
<td><img src="../images/pixel_trans.gif" border="0" alt="" width="1" height="5"></td>
</tr>
<tr>
<td class="main"></td>
</tr>
<tr>
<td class="main"><a href="mailto:{$arrOrders.customers_email}"><u>{$arrOrders.customers_email}</u></a></td>
</tr>
</table></td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><b>SHIP TO:</b></td>
</tr>
<tr>
<td class="main">
{$arrOrders.delivery_name} <br>{$arrOrders.delivery_street} <br>{$arrOrders.delivery_city}, {$arrOrders.delivery_state} {$arrOrders.delivery_postcode}<br> {$arrOrders.delivery_country}
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="../images/pixel_trans.gif" border="0" alt="" width="1" height="10"></td>
</tr>
<tr>
<td><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><b>Payment Method:</b></td>
<td class="main">{$arrOrders.payment_method}</td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="../images/pixel_trans.gif" border="0" alt="" width="1" height="10"></td>
</tr>
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr bgcolor="#E4E4E4">
<td width="65%">Products</td>
<td width="35%">Model</td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td > {$data.name}</td>
<td > {$data.model}</td>
</tr>
{/foreach}
<tr>
<td align="right" colspan="8">
</td>
</tr>
<tr>
<td align="right" colspan="8">
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- body_text_eof //-->
<br>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listOrders_Packingslip.htm | HTML | asf20 | 3,773 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
if (valid.isEmpty("menuName","Menu name")){
return false;
}else if (valid.isEmpty("orders","Order number")){
return false;
}else if (valid.isEmpty("menuUrl","Menu url")){
return false;
}else if (valid.isEmpty("groupid","Menu group")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="20%">Add Menu</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Name:</td>
<td colspan="2">
<input name="menuName" id="menuName" type="text" value="{$menuName}">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Order:</td>
<td colspan="2">
<input name="orders" id="orders" type="text" value="{$orders}">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">URL:</td>
<td height="23" colspan="2">
<input name="menuUrl" id="menuUrl" type="text" value="{$menuUrl}" size="60">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Summary:</td>
<td colspan="2">
<input name="menuRemark" id="menuRemark" type="text" value="{$menuRemark}" size="60"> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Menu Group:</td>
<td height="23" colspan="2"><select name="groupid" id="groupid">{html_options options=$arrMenuGroup selected=$groupidS}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"> </td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listMenu_Add.htm | HTML | asf20 | 3,495 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
{literal}
<SCRIPT language=JavaScript>
function checkForm(){
var theform = window.document.form1
if (theform.name.value == ""){
alert("The class name shouldn't be empty");
theform.name.focus();
return false;
}else if (theform.parentid.value == ""){
alert("The class parent level shouldn't be empty");
theform.parentid.focus();
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="20%">Edit Attribute</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Name:</td>
<td colspan="2">
<input name="name" type="text" value="{$name}">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Sort:</td>
<td colspan="2">
<input name="sorts" id="sorts" type="text" value="{$sorts}">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Parent Class:</td>
<td height="23" colspan="2"><select name="parentid" id="perentid">{html_options options=$arrParentid selected=$parentidS}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Is Leaf:</td>
<td height="23" colspan="2"> {html_radios name="isLeaf" options=$arrIsLeaf checked=$isLeafS separator=" "}</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Summary:</td>
<td height="23" colspan="2"><textarea name="summary" id="summary" cols="45" rows="5">{$summary}</textarea></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"> </td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="id" type="hidden" id="id" value="{$id}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listAttributes_Edit.htm | HTML | asf20 | 3,359 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="5%">ID</td>
<td width="5%">Order</td>
<td width="15%">Name</td>
<td width="40%">Summary</td>
<td width="25%">URL</td>
<td width="10%">Operation | <b><a href="listMenu_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="5" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=menu from=$arrMenuList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td>{$menu.id}</td>
<td>{$menu.orders}</td>
<td>{$menu.name}</td>
<td>{$menu.remark}</td>
<td>{$menu.url}</td>
<td>{section name=opItem loop=$arrOperateInfo}
{if $smarty.section.opItem.index != 0}
|
{/if}
<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$menu.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
{/section}</td>
</tr>
{/foreach}
</table>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="left" width="20%">{$PAGE_BAR}</td>
<td align="center" width="80%"></td>
</tr>
</table>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listMenu.htm | HTML | asf20 | 1,851 |
<html>
<head>
<title>info detail</title>
<LINK href="../css/style.css" type=text/css rel=stylesheet>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
<div style="padding-top:5px">
<table width="96%" height="95%" border=0 align="center" cellpadding=5 cellspacing=0>
<tr>
<td align="left" valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#333333" bgcolor="#CCCCCC">
<tr height=20 bgcolor="#E4E4E4">
<td width="10%" height="25" align="right"> Name : </td>
<td width="80%" align="left">{$arrMerInfo.name}</td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr height=20 bgcolor="#FFFFFF">
<td height="25" align="right"> URL : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$arrMerInfo.URL}</font></td>
</tr>
<tr height=20 bgcolor="#FFFFFF">
<td height="25" align="right"> Summary : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$arrMerInfo.summary}</font></td>
</tr>
</table>
</td>
</tr>
</table></div>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listMerchant_View.htm | HTML | asf20 | 1,546 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="10%" align="center">ID</td>
<td width="60%"> Name</td>
<td width="30%" align="center">Operation | <b><a href="listOperation_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="5" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="center">{$data.id}</td>
<td width="25%"> {$data.name}</td>
<td align="center">{section name=opItem loop=$arrOperateInfo}
{if $smarty.section.opItem.index != 0}
|
{/if}
<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
{/section}</td>
</tr>
{/foreach}
</table>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="left" width="20%">{$PAGE_BAR}</td>
<td align="center" width="80%"></td>
</tr>
</table>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listOperation.htm | HTML | asf20 | 1,778 |
<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
{literal}
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
var theform = window.document.form1
if (valid.isEmpty("name","manufacturer name")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="2">
<tr bgcolor="#E4E4E4">
<td width="20%"> Edit Customer</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">First Name:</td>
<td colspan="2">
<input name="firstname" type="text" id="firstname" value="{$firstname}" maxlength="20">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Last Name:</td>
<td colspan="2">
<input name="lastname" type="text" id="lastname" value="{$lastname}" size="40" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Email:</td>
<td colspan="2">
<input name="email" type="text" id="email" value="{$email}" size="40" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Company name:</td>
<td colspan="2">
<input name="company" type="text" id="company" value="{$company}" size="40" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Street Address:</td>
<td colspan="2">
<input name="street" type="text" id="street" value="{$street}" size="40" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Post Code:</td>
<td colspan="2">
<input name="postcode" type="text" id="postcode" value="{$postcode}" size="40" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">City:</td>
<td colspan="2">
<input name="city" type="text" id="city" value="{$city}" size="40" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">State:</td>
<td colspan="2">
<input name="state" type="text" id=""state"" value="{$state}" size="40" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Country:</td>
<td colspan="2">
<select name="countryid" style="height:22px; margin-top:0px;">
{html_options options=$arrCountries selected=$countryid}
</select>
</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Telephone Number:</td>
<td colspan="2">
<input name="telephone" type="text" id="telephone" value="{$telephone}" size="40" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Fax Number:</td>
<td colspan="2">
<input name="fax" type="text" id="fax" value="{$fax}" size="40" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Newsletter:</td>
<td colspan="2">
<select name="newsletter">
{html_options options=$arrNewsletter selected=$newsletter}
</select>
</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"></td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="id" type="hidden" id="id" value="{$id}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listCustomer_Edit.htm | HTML | asf20 | 5,985 |
<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
if (valid.isEmpty("name","Class name")){
return false;
}else if (valid.isEmpty("parentid","Parent class")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="20%">Add Shipping Fee </td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Amount:</td>
<td colspan="2">
<input name="amount" id="amount" type="text" value="{$amount}">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Amount2:</td>
<td colspan="2">
<input name="amount2" id="amount2" type="text" value="{$amount2}">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Countries:</td>
<td height="23" colspan="2"><select name="countryid" id="countryid" onchange="return submit();">{html_options options=$arrCountry selected=$countryid}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Zones:</td>
<td height="23" colspan="2"><select name="zoneid" id="zoneid">{html_options options=$arrZones selected=$zoneid}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Type:</td>
<td height="23" colspan="2"><select name="shippingTypeID" id="shippingTypeID">{html_options options=$arrShippingType selected=$shippingTypeID}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Method:</td>
<td height="23" colspan="2"><select name="shippingMethodID" id="shippingMethodID">{html_options options=$arrShippingMethod selected=$shippingMethodID}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Summary:</td>
<td height="23" colspan="2"><textarea name="summary" id="summary" cols="45" rows="5">{$summary}</textarea></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" width="17%"> </td>
<td width="83%" height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listShippingFee_Add.htm | HTML | asf20 | 4,167 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="5%">ID</td>
<td width="15%">Name</td>
<td width="65%">Description</td>
<td width="15%">Operation | <b><a href="listMerchant_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="4" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td> {$data.id}</td>
<td > {$data.name}</td>
<td> {$data.summary}</td>
<td>{section name=opItem loop=$arrOperateInfo}
{if $smarty.section.opItem.index != 0}
|
{/if}
<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
{/section}</td>
</tr>
{/foreach}
</table>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="left" width="60%">{$PAGE_BAR}</td>
<td align="right" width="40%"></td>
</tr>
</table>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listMerchant.htm | HTML | asf20 | 1,635 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
if (valid.isEmpty("name","english name")){
return false;
}else if (valid.isEmpty("namecn","chinese name")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="20%">Add Country</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Name:</td>
<td colspan="2">
<input name="name" type="text" id="name" value="{$name}" maxlength="20">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Status:</td>
<td height="23" colspan="2"> {html_radios name="status" options=$arrStatus checked=$statusS separator=" "}</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"> </td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listCountry_Add.htm | HTML | asf20 | 2,278 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
if (valid.isEmpty("name","english name")){
return false;
}else if (valid.isEmpty("namecn","chinese name")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="20%">Edit Country</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Name:</td>
<td colspan="2">
<input name="name" type="text" id="name" value="{$name}" maxlength="20">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Status:</td>
<td height="23" colspan="2"> {html_radios name="status" options=$arrStatus checked=$statusS separator=" "}</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"> </td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}">
<input name="id" type="hidden" id="id" value="{$id}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listCountry_Edit.htm | HTML | asf20 | 2,344 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
if (valid.isEmpty("name","Operation name")){
return false;
}else if (valid.isEmpty("namecn","Operation chinese name")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000" style="margin:0px;padding:0px;">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="20%" >Add Operation</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Name:</td>
<td colspan="2">
<input name="name" type="text" id="name" value="{$name}" maxlength="40">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"> </td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listOperation_Add.htm | HTML | asf20 | 1,978 |
<html>
<head>
<TITLE>MarsEMS System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
{literal}
<SCRIPT language=JavaScript>
function checkForm(){
var theform = window.document.form1
if (theform.userid.value == ""){
alert("The user shouldn't be empty. Please select one user.");
theform.userid.focus();
return false;
}else{
return true;
}
}
</script>
{/literal}
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="35%" >User Group :
<select name=groupid onChange="if (window.document.form1.groupid.value != '') submit(); else return false;">
<option value="">--- Select ---</option>
{html_options options=$arrGroupID selected=$groupid}
</select>
</td>
<td><font color="#FF0000"> {$error_message}</font></td>
</tr>
</table>
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="10%" align="center">ID</td>
<td width="25%">Menu</td>
<td width="41%">Summary</td>
<td>Operation</td>
</tr>
{foreach item=per from=$arrPermissionList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td width="10%" align="center">{$per.mid}</td>
<td width="25%">{$per.name}</td>
<td width="41%">{$per.remark}</td>
<td>{html_checkboxes values=$per.arrOperationID checked=$per.arrOperationS name=arrOperation output=$per.arrOperationName separator=" "}</td>
</tr>
{/foreach}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td></td>
<td width="25%" class="mainfont">
<!--<font face="arial" size="-1" color=black><B>All Views </b></font>
<input name="checkall" type="checkbox" id="checkall" value="1" onClick="checkAll()">--></td>
<td width="41%" class="mainfont"><!--
<font face="arial" size="-1" color=black><B>All Operations </b></font>
<input name="checkall_" type="checkbox" id="checkall_" value="1" onClick="checkAll_()">--></td>
<td colspan="4" align="RIGHT">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset"></td>
</tr>
</table>
</form>
</body>
{literal}
<script>
function checkAll_(){
var form = document.forms["form1"];
var flag = form.checkall_.checked;
for (var i=0; i < form.length;i++)
{
if (form.elements[i].name.substring(0,10)=='operation_')
{
form.elements[i].checked = flag;
}
}
return true;
}
function checkAll(){
var form = document.forms["form1"];
var flag = form.checkall.checked;
for (var i=0; i < form.length;i++)
{
if (form.elements[i].name.substring(0,5)=='view_')
{
form.elements[i].checked = flag;
}
}
return true;
}
function pauseBid(){
var form=document.forms["form1"];
var err = false;
var i = 0;
//window.confirm("Are you sure want to ...");
err = true;
for (var i=0; i < form.length;i++)
{
if (form.elements[i].name.substring(0,5)=='view_' ||form.elements[i].name.substring(0,5)=='operation_')
{
if(form.elements[i].checked==true){
err = false;
break;
}
}
}
if(!err){
form.act.value = "pause";
form.submit();
return true;
}else{
//alert("all unchecked");
return false;
}
}
</script>
{/literal}
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/GroupPermission.htm | HTML | asf20 | 3,858 |
<html>
<head>
<title>order detail</title>
<LINK href="../css/style.css" type=text/css rel=stylesheet>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
<table width="96%" border=0 align="center" cellpadding=5 cellspacing=0>
<tr height="25px">
<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading">Orders</td>
<td class="pageHeading" align="right"><img src="../images/pixel_trans.gif" border="0" alt="" width="1" height="40"></td>
<td align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
</table></td>
</tr>
<tr height="5px">
<td colspan="3"><img src="../images/pixel_black.gif" border="0" alt="" width="100%" height="1"></td>
</tr>
<tr height="210px">
<td align="left" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td colspan="3"><img src="images/pixel_black.gif" border="0" alt="" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main" valign="top"><b>Customer:</b></td>
<td class="main">{$arrOrders.customers_name} <br>
{$arrOrders.customers_street}<br>
{$arrOrders.customers_city} {$arrOrders.customers_state} {$arrOrders.customers_postcode}<br>
{$arrOrders.customers_country}
</td>
</tr>
<tr>
<td colspan="2"><img src="images/pixel_trans.gif" border="0" alt="" width="1" height="5"></td>
</tr>
<tr>
<td class="main"><b>Telephone Number:</b></td>
<td class="main">{$arrOrders.customers_telephone}</td>
</tr>
<tr>
<td class="main"><b>E-Mail Address:</b></td>
<td class="main"><a href="mailto:{$arrOrders.customers_email}"><u>{$arrOrders.customers_email}</u></a></td>
</tr>
<tr height="35px">
<td class="main"> </td>
<td class="main"> </td>
</tr>
<tr>
<td class="main"><b>Order Number:</b></td>
<td class="main">{$arrOrders.id}</td>
</tr>
<tr>
<td class="main"><b>Payment Method:</b></td>
<td class="main"><font style="line-height:20px">{$arrOrders.payment_method}</font></td>
</tr>
</table>
</td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main" valign="top"><b>Shipping Address:</b></td>
<td class="main">{$arrOrders.delivery_name} <br>
{$arrOrders.delivery_street}<br>
{$arrOrders.delivery_city} {$arrOrders.delivery_state} {$arrOrders.delivery_postcode} <br>
{$arrOrders.delivery_country}
</td>
</tr>
</table>
</td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main" valign="top"><b>Billing Address:</b></td>
<td class="main">{$arrOrders.billing_name} <br>
{$arrOrders.billing_street}<br>
{$arrOrders.billing_city} {$arrOrders.billing_state} {$arrOrders.billing_postcode} <br>
{$arrOrders.billing_country}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" valign="top">
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="65%" class="pageFrom"><b>Products</b></td>
<td width="5%" class="pageFrom"><b>Model</b></td>
<td width="10%" class="pageFrom"><b>Price</b></td>
<td width="10%" class="pageFrom"><b>Final Price</b></td>
<td width="5%" class="pageFrom"><b>Quantity</b></td>
<td width="5%" class="pageFrom"><b>Total</b></td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td > <font style="font-size:24px">{$data.quantity} X </font>{$data.name}
<br><nobr><small>
{foreach item=attri from = $data.attributes}
<i> - <font style="font-size:11px">{$attri.attribute}</font>: <font style="font-size:14px">{$attri.attributeValue}</font>
{if $attri.attributeValuePrice > 0}
(${$attri.price_prefix}{$attri.attributeValuePrice / 100})
{/if}
</i><br>
{/foreach}
</small></nobr>
</td>
<td > {$data.model}</td>
<td> ${$data.price / 100}</td>
<td> ${$data.finalPrice / 100}</td>
<td> {$data.quantity}</td>
<td> ${$data.finalPrice * $data.quantity / 100}</td>
</tr>
{/foreach}
<tr>
<td align="right" colspan="8">
</td>
</tr>
{foreach item=data from=$arrAccountList}
<tr height="20">
<td colspan="5" align="right"><b>{$data.comments}</b>:</td>
<td align="left"> ${$data.amount / 100|string_format: "%.2f"}</td>
</tr>
{/foreach}
</table>
<!--
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="5%" class="pageFrom"><b>Amount</b></td>
<td width="10%" class="pageFrom"><b>Amount Class</b></td>
<td width="85%" class="pageFrom"><b>Comments</b></td>
</tr>
{foreach item=data from=$arrAccountList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td> ${$data.amount / 100}</td>
<td> {$data.classes}</td>
<td> {$data.comments|nl2br}</td>
</tr>
{/foreach}
</table>
-->
<br></br>
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="15%" class="pageFrom"><b>Date Added</b></td>
<td width="15%" class="pageFrom"><b>Customer Notified</b></td>
<td width="10%" class="pageFrom"><b>Status</b></td>
<td width="60%" class="pageFrom"><b>Comments</b></td>
</tr>
{foreach item=data from=$arrStatusList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td > {$data.createdTime}</td>
<td > {$data.notified}</td>
<td > {$data.status}</td>
<td> {$data.comments|nl2br}</td>
</tr>
{/foreach}
</table>
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td colspan="3"><font color="#FF0000"> {$error_message}</font></td>
</tr>
<tr>
<td width="100%" colspan="3" class="pageFrom"> <b>Comments</b>:<textarea name="comments" wrap="soft" cols="60" rows="5"></textarea></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20%" class="pageFrom"><b>Status:</b>
<select name="status">
<option value="pending">Pending</option>
<option value="processing" SELECTED>Processing</option>
<option value="delivered">Delivered</option>
<option value="packed">Packed</option>
<option value="returned">Returned</option>
<option value="canceled">Canceled</option>
<option value="shipped">Shipped</option>
</select></td>
<td width="20%" class="pageFrom"><b>Notify Customer:</b> <input type="checkbox" name="notify" CHECKED></td>
<td width="60%">
<input type="submit" name="Submit" value="Update">
<input name="id" type="hidden" id="menuid" value="{$id}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listOrders_View.htm | HTML | asf20 | 8,604 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
{literal}
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
var theform = window.document.form1
if (valid.isEmpty("name"," name")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="" enctype="multipart/form-data">
<table width="100%" cellspacing="0" cellpadding="2">
<tr bgcolor="#E4E4E4">
<td width="20%" height="25"> Edit Product</td>
<td width="65%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="listProduct_Images.php?menuGid={$menuGid}&menuid={$menuid}&id={$id}" target="_self">Upload Images</A> </td>
<td width="5%" align="right"> <A href="listProduct.php?menuGid={$menuGid}&menuid={$menuid}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Name:</td>
<td colspan="3">
<input name="name" type="text" id="name" value="{$name}" size="80" maxlength="120">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Category:</td>
<td colspan="3">
<label><select name="categoryID" id="categoryID">{html_options options=$arrCategories selected=$categoryID}</select></label>
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Price($):</td>
<td colspan="3">
<input name="price" type="text" id="price" value="{$price}" size="60" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Manufacturers:</td>
<td colspan="3">
<select name="manufacturerID" id="manufacturerID">{html_options options=$arrManufacturer selected=$manufacturerIDS}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Shipping Type:</td>
<td colspan="3">
<select name="shippingTypeID">{html_options options=$arrShippingType selected=$shippingTypeID}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Tax Rate:</td>
<td colspan="3">
<select name="taxRateID" id="taxRateID">{html_options options=$arrTax selected=$taxRateIDS}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Weight:</td>
<td colspan="3">
<input name="weight" type="text" id="weight" value="{$weight}" size="60" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Quantity:</td>
<td colspan="3">
<input name="totalCount" type="text" id="totalCount" value="{$totalCount}" size="60" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Model:</td>
<td colspan="3">
<input name="model" type="text" id="model" value="{$model}" size="60" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">UPC:</td>
<td colspan="3">
<input name="UPC" type="text" id="UPC" value="{$UPC}" size="60" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">URL:</td>
<td colspan="3">
<input name="url" type="text" id="url" value="{$url}" size="60" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Description:</td>
<td colspan="3">
{$fckHtml}
</td>
</tr>
{foreach item = data from = $arrAttributes}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">{$data.name}:</td>
<td colspan="3">
<table width="100%" cellspacing="0" cellpadding="2">
{foreach name=att item=attribute from = $data.attribute}
{if $attribute.options|@count == 0}
{if $smarty.foreach.att.first == 'true'}
<tr>
<td>
{/if}
<label><input type="checkbox" name="attributes[]" value="{$attribute.id}" {$attribute.checked} />{$attribute.name}</label>
{if $smarty.foreach.att.last == 'true'}
</td>
{/if}
{else}
<tr>
<td width="25%">
<label><input type="checkbox" name="attributes[]" value="{$attribute.id}" {$attribute.checked} />{$attribute.name}</label>
</td>
{foreach item=values from = $attribute.options}
<td width="75%">
{if $values.keyes == 'Price'}
{$values.keyes}: <input name="attribute_price_{$attribute.id}" type="text" size="5" maxlength="10" value="{$values.valuess / 100}">
{/if}
</td>
{/foreach}
{if $smarty.foreach.att.last != 'true'}
</tr>
{/if}
{/if}
{/foreach}
</tr>
</table>
</td>
</tr>
{/foreach}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Status:</td>
<td colspan="3">{html_radios name="status" options=$arrStatus checked=$StatusS separator=" "}
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"></td>
<td height="23" colspan="3">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="id" type="hidden" id="id" value="{$id}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listProduct_Edit.htm | HTML | asf20 | 7,945 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="4" align="left"> <font color="#FF0000">Product Files : </font>
<form name="form1" method="post" action="" enctype="multipart/form-data">
<input name="batchFile" type="file" size="45">
<input type="submit" name="Submit" value="Upload">
<input name="action" type="hidden" value="batchFile">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
</form>
</td>
</tr>
<tr bgcolor="#E4E4E4">
<td colspan="5" > Process Results</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="4" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach name=info item=product key=key from=$arrCheckResult}
<tr>
<td colspan="2"> [ <b>{$smarty.foreach.info.iteration}</b> ] <b>{$key}</b></td>
</tr>
{foreach item=data from=$product}
<tr>
<td width="50"> </td>
<td> {$data}</td>
</tr>
{/foreach}
{/foreach}
{if $checkOK =='yes'}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="4" align="center">
<form name="fm2" method="post" action="">
<input name="batchFile" type="hidden" value="{$batchFile}">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input type="submit" name="Submit" value="Confirm Submit">
</form>
</td>
</tr>
{/if}
</table>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/batchProduct.htm | HTML | asf20 | 2,265 |
<HTML>
<HEAD>
<TITLE>Management System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
{literal}
<LINK href="./css/style.css" type=text/css rel=stylesheet>
</HEAD>
<SCRIPT language=JavaScript>
function change(varStr){
var flag = document.getElementById("menu" + varStr);
if(flag.style.display == "none"){
flag.style.display = "";
}else{
flag.style.display = "none";
}
}
function startLoad(varStr){
if(varStr == "0"){
return "";
}
document.getElementById("menu" + varStr).style.display = "";
}
function loadImages(){
image1=new Image();
image1.src="images/hiddenMenu.gif";
image2=new Image();
image2.src="images/displayMenu.gif";
}
function SwitchBar(){
if (""==document.all("menu").style.display){
document.getElementById("menu").style.display="none";
document.image.src=image2.src;
}else{
document.getElementById("menu").style.display="";
document.image.src=image1.src;
}
}
</SCRIPT>
{/literal}
<body onLoad="startLoad('{$initGid}'); loadImages()">
<TABLE cellSpacing=4 cellPadding=0 width="100%" border=0>
<tr>
<TR>
<TD align="left" width=192 height=61>
<IMG alt="company logo" src="./images/logo_smarter.gif" border="0"></TD>
<TD width="10"> </TD>
<TD vAlign=bottom>
<TABLE cellSpacing=0 cellPadding=1 width="100%" border=0>
<TBODY>
<TR>
<TD align=left> </TD><TD align=left></TD>
<TD align=right width=190><A href="#"><IMG height=20 alt=print src="images/printthispage.gif" width=113 border=0></A> </TD>
</TR>
<TR>
<TD align=left> User:<font class="orange"> {$userName}</font></TD>
<TD align=right><A href="./index.php?Lan=en-US">English</A> | <A href="{$HOME_URL}">Home</A> | </TD>
<TD width=190><A href="./logout.php" target=_top ><IMG height=15 alt=login src="images/logout.gif" width=190 border=0 name=login onMouseOver="this.src='images/logout_over.gif'" onMouseOut="this.src='images/logout.gif'"></A> </TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
<TR class="bar">
<TD align="center" width=192 height=20><A href="{$HOME_URL}" class="sub"><B>Home</B></A></TD>
<TD align="center" width="10" onClick="SwitchBar()" style="background-color:orange"><img src="images/hiddenMenu.gif" width="9" height="9" name="image"></TD>
<TD height=20>
<TABLE cellSpacing=0 cellPadding=4 width="100%" border=0>
<TBODY>
<TR class="menulistbar">
<TD width="60%" align="left"><font class="white">Position:</font><font class="orange"> {$navigation}</font></TD>
<TD width="40%" align="right"><span class="error_message">{$error_message}</span></TD>
</TR></TBODY></TABLE>
</TD>
</TR>
<TR>
<td colspan="3">
<table width="100%" border="0">
<tr>
<TD id="menu" vAlign="top" width=189>
<table width="100%" cellspacing="0" cellpadding="3">
{foreach item=sec from=$arrMenuList}
<tr>
<td background="images/menu.gif" align="center" onclick=change('{$sec[0].gid}')><font class=white><b> {$sec[0].gname}</b></font></td>
</tr>
<tr style="display:none" id='menu{$sec[0].gid}'>
<td >
<table width="100%" cellspacing="1" cellpadding="4" bgcolor="#CCCCCC">
{section name=sec1 loop=$sec}
<tr bgcolor="#FFFFFF">
<td width="3%"> </td>
<td class=bg onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FAFAFA'" align=left
height=20 width="97%"><a href="index.php?menuGid={$sec[0].gid}&menuid={$sec[sec1].mid}" class="sub">{$sec[sec1].mname}</a> </td>
</tr>
{/section}
</table></td>
</tr>
{/foreach}
</table>
</TD>
<TD vAlign=top><iframe frameborder="0" marginwidth="0" marginheight="0" hspace="0" vspace="0" name="subFrame" scrolling="auto" scrolling="auto" style="VISIBILITY: inherit; WIDTH: 100%; HEIGHT: 950" src="{$subFrameUrl}"></iframe></TD>
</tr>
</table>
</td>
</TR>
</TABLE>
</BODY></HTML>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/main.htm | HTML | asf20 | 4,160 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
{literal}
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
var theform = window.document.form1
if (valid.isEmpty("groupid","org user group")){
return false;
}else if (valid.isEmpty("name","login name")){
return false;
}else if(theform.password1.value != ""){
if (valid.isEmpty("password1","password")){
return false;
}else if (valid.isEmpty("password2","verify password")){
return false;
}else if (!valid.isCompare("password1", "password2","password", 6, 12)){
return false;
}
}else if (valid.isEmpty("merName","Merchant name")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="2">
<tr bgcolor="#E4E4E4">
<td width="20%"> Edit</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Name:</td>
<td colspan="2">
<input name="name" type="text" id="name" value="{$name}" maxlength="20">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">URL:</td>
<td colspan="2">
<input name="url" type="text" id="url" value="{$url}" size="40" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Description:</td>
<td colspan="2">
<input name="summary" type="text" id="summary" value="{$summary}" size="50" maxlength="10"><font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"></td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="id" type="hidden" id="id" value="{$id}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listMerchant_Edit.htm | HTML | asf20 | 3,082 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
if (valid.isEmpty("name","Class name")){
return false;
}else if (valid.isEmpty("parentid","Parent class")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="20%">Add Attribute </td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Name:</td>
<td colspan="2">
<input name="name" id="name" type="text" value="{$name}">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Sort:</td>
<td colspan="2">
<input name="sorts" id="sorts" type="text" value="{$sorts}">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Parent Class:</td>
<td height="23" colspan="2"><select name="parentid" id="perentid">{html_options options=$arrParentid selected=$parentidS}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Is Leaf:</td>
<td height="23" colspan="2"> {html_radios name="isLeaf" options=$arrIsLeaf checked=$isLeafS separator=" "}</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Summary:</td>
<td height="23" colspan="2"><textarea name="summary" id="summary" cols="45" rows="5">{$summary}</textarea></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" width="17%"> </td>
<td width="83%" height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listAttributes_Add.htm | HTML | asf20 | 3,277 |
<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="5%">ID</td>
<td width="8%">Code</td>
<td width="8%">Scope</td>
<td width="8%">Scope ID</td>
<td width="8%">Type</td>
<td width="8%">Save Value</td>
<td width="8%">isBinding</td>
<td width="8%">Used Limit</td>
<td width="8%">Used Count</td>
<td width="11%">Expire Time</td>
<td width="10%">Operation | <b><a href="listShippingFee_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="4" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td>{$data.id}</td>
<td>{$data.code}</td>
<td>{$data.scope}</td>
<td>{$data.scopeID}</td>
<td>{$data.type}</td>
<td>{$data.offValue}</td>
<td>{$data.isBinding}</td>
<td>{$data.usedLimit}</td>
<td>{$data.usedCount}</td>
<td>
{if $data.expireTime == ''}
any time valid.
{else}
{$data.expireTime}
{/if}
</td>
<td>{section name=opItem loop=$arrOperateInfo}
{if $smarty.section.opItem.index != 0}
|
{/if}
<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
{/section}</td>
</tr>
{/foreach}
</table>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="left" width="80%">{$PAGE_BAR}</td>
<td align="center" width="20%"></td>
</tr>
</table>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listCoupon.htm | HTML | asf20 | 2,201 |
<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
{literal}
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<script language="JavaScript" src="../js/calender.js" type="text/JavaScript"></script>
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
var theform = window.document.form1
if (valid.isEmpty("name","manufacturer name")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="2">
<tr bgcolor="#E4E4E4">
<td width="20%"> Edit Special</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Product:</td>
<td colspan="2">
<select name="productID" id="productID">{html_options options=$arrProducts selected=$productID}</select>
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Special Price:</td>
<td colspan="2">
<input name="newPrice" type="text" id="newPrice" value="{$newPrice}" size="20" maxlength="80">
<font color="#FF0000"> *</font>
</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Expiry Date:</td>
<td colspan="2">
<input name="expireDate" type="text" id="expireDate" value="{$expireDate}" maxlength="20" onKeyDown="SelectDate(this,'yyyy-MM-dd')" onFocus="SelectDate(this,'yyyy-MM-dd')">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"></td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="id" type="hidden" id="id" value="{$id}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listSpecial_Edit.htm | HTML | asf20 | 3,039 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
if (valid.isEmpty("name","Operation name")){
return false;
}else if (valid.isEmpty("namecn","Operation chinese name")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000" style="margin:0px;padding:0px;">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="20%" >Edit Operation</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Name:</td>
<td colspan="2">
<input name="name" type="text" id="name" value="{$name}" maxlength="40">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"> </td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listOperation_Edit.htm | HTML | asf20 | 1,979 |
<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="5%">ID</td>
<td width="30%">Product Name</td>
<td width="40%">Description</td>
<td width="10%">Status</td>
<td width="15%">Operation | <b><a href="listPromotion_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="4" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td> {$data.id}</td>
<td> {$data.name}</td>
<td> {$data.descript}</td>
<td > {$data.status}</td>
<td>{section name=opItem loop=$arrOperateInfo}
{if $smarty.section.opItem.index != 0}
|
{/if}
<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
{/section}</td>
</tr>
{/foreach}
</table>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="left" width="60%">{$PAGE_BAR}</td>
<td align="right" width="40%"></td>
</tr>
</table>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listPromotion.htm | HTML | asf20 | 1,840 |
<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="5%">ID</td>
<td width="10%">Zone</td>
<td width="15%">Type</td>
<td width="20%">Method</td>
<td width="10%">Amount</td>
<td width="10%">Amount2</td>
<td width="10%">Summary</td>
<td width="5%">Status</td>
<td width="15%">Operation | <b><a href="listShippingFee_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="4" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td>{$data.id}</td>
<td>{$data.zone}</td>
<td>{$data.type}</td>
<td>{$data.method}</td>
<td>${$data.amount / 100}</td>
<td>${$data.amount2 / 100}</td>
<td>{$data.summary}</td>
<td>{$data.status}</td>
<td>{section name=opItem loop=$arrOperateInfo}
{if $smarty.section.opItem.index != 0}
|
{/if}
<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
{/section}</td>
</tr>
{/foreach}
</table>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="left" width="80%">{$PAGE_BAR}</td>
<td align="center" width="20%"></td>
</tr>
</table>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listShippingFee.htm | HTML | asf20 | 1,962 |
<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
if (valid.isEmpty("name","Class name")){
return false;
}else if (valid.isEmpty("parentid","Parent class")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="20%">Edit Shipping Fee </td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Amount:</td>
<td colspan="2">
<input name="amount" id="amount" type="text" value="{$amount}">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Amount2:</td>
<td colspan="2">
<input name="amount2" id="amount2" type="text" value="{$amount2}">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Countries:</td>
<td height="23" colspan="2"><select name="countryid" id="countryid" onchange="return submit();">{html_options options=$arrCountry selected=$countryid}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Zones:</td>
<td height="23" colspan="2"><select name="zoneid" id="zoneid">{html_options options=$arrZones selected=$zoneid}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Type:</td>
<td height="23" colspan="2"><select name="shippingTypeID" id="shippingTypeID">{html_options options=$arrShippingType selected=$shippingTypeID}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Method:</td>
<td height="23" colspan="2"><select name="shippingMethodID" id="shippingMethodID">{html_options options=$arrShippingMethod selected=$shippingMethodID}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Summary:</td>
<td height="23" colspan="2"><textarea name="summary" id="summary" cols="45" rows="5">{$summary}</textarea></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" width="17%"> </td>
<td width="83%" height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="id" type="hidden" id="id" value="{$id}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listShippingFee_Edit.htm | HTML | asf20 | 4,229 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
if (valid.isEmpty("question","Question")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="20%">Add Info</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right"> Title:</td>
<td height="23" colspan="2">
<input name="title" type="text" id="title" value="{$title}" size="40" maxlength="100"> <font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Level:</td>
<td height="23" colspan="2">
{html_radios name="level" options=$arrLevel checked=$levelS separator=" "} <font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Type:</td>
<td height="23" colspan="2">
<select name="acceptType" onChange="return submit();">
{html_options options=$arrAcceptType selected=$acceptTypeS}
</select> <font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Object:</td>
<td height="23" colspan="2">
<select name="accept">
{html_options options=$arrAccept selected=$acceptS}
</select> <font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Content:</td>
<td height="23" colspan="2">
{$fckHtml}</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"> </td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listMessage_Add.htm | HTML | asf20 | 3,231 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
{literal}
<SCRIPT language=JavaScript>
function checkForm(){
var theform = window.document.form1
if (theform.name.value == ""){
alert("The class name shouldn't be empty");
theform.name.focus();
return false;
}else if (theform.parentid.value == ""){
alert("The class parent level shouldn't be empty");
theform.parentid.focus();
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="20%">编辑咨询</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">返 回</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">咨询问题:</td>
<td height="23" colspan="2"><font color="#FF0000">
<textarea name="question" id="question" cols="100" rows="2">{$question}</textarea>
<label></label>
*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">咨询答案:</td>
<td height="23" colspan="2">{$fckHtml}</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">状态:</td>
<td height="23" colspan="2"> {html_radios name="status" options=$arrStatus checked=$statusS separator=" "}</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"> </td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="提交" onClick="return checkForm()">
<input type="reset" name="Reset" value="重置">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}">
<input name="id" type="hidden" id="id" value="{$id}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listQA_Edit.htm | HTML | asf20 | 2,666 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="5%">ID</td>
<td width="10%">Name</td>
<td width="55%">Summary</td>
<td width="10%">Status</td>
<td width="10%">Operation | <b><a href="listCountry_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="3" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td>{$data.id}</td>
<td>{$data.name}</td>
<td>{$data.namecn}</td>
<td>{$data.summay}</td>
<td>{$data.status}</td>
<td>{section name=opItem loop=$arrOperateInfo}
{if $smarty.section.opItem.index != 0}
|
{/if}
<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
{/section}</td>
</tr>
{/foreach}
</table>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="left" width="39%">{$PAGE_BAR}</td>
<td align="center" width="61%"></td>
</tr>
</table>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listCountry.htm | HTML | asf20 | 1,829 |
<html>
<head>
<title>info detail</title>
<LINK href="../css/style.css" type=text/css rel=stylesheet>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
<div style="padding-top:5px">
<table width="96%" height="95%" border=0 align="center" cellpadding=5 cellspacing=0>
<tr>
<td align="left" valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#333333" bgcolor="#CCCCCC">
<tr height=20 bgcolor="#E4E4E4">
<td width="10%" height="25" align="right"> Title : </td>
<td width="80%" align="left">{$title}</td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr height=20 bgcolor="#FFFFFF">
<td height="25" align="right"> Content : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$content}</font></td>
</tr>
</table>
</td>
</tr>
</table></div>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listMessage_View.htm | HTML | asf20 | 1,265 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
{literal}
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
var theform = window.document.form1
if (valid.isEmpty("name"," name")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="" enctype="multipart/form-data">
<table width="100%" cellspacing="0" cellpadding="2">
<tr bgcolor="#E4E4E4">
<td width="15%"> Add Product</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right">
{if $productID > 0}
<A href="listProduct_Images.php?menuGid={$menuGid}&menuid={$menuid}&id={$productID}" target="_self">Upload Images</A>
{/if}
</td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Name:</td>
<td colspan="3">
<input name="name" type="text" id="name" value="{$name}" size="80" maxlength="120">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Category:</td>
<td colspan="3">
<label><select name="categoryID" id="categoryID">{html_options options=$arrCategories selected=$categoryID}</select></label>
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Price($):</td>
<td colspan="3">
<input name="price" type="text" id="price" value="{$price}" size="60" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Manufacturers:</td>
<td colspan="3">
<select name="manufacturerID" id="manufacturerID">{html_options options=$arrManufacturer selected=$manufacturerIDS}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Shipping Type:</td>
<td colspan="3">
<select name="shippingTypeID">{html_options options=$arrShippingType selected=$shippingTypeID}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Tax Rate:</td>
<td colspan="3">
<select name="taxRateID" id="taxRateID">{html_options options=$arrTax selected=$taxRateIDS}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Weight:</td>
<td colspan="3">
<input name="weight" type="text" id="weight" value="{$weight}" size="60" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Quantity:</td>
<td colspan="3">
<input name="totalCount" type="text" id="totalCount" value="{$totalCount}" size="60" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Model:</td>
<td colspan="3">
<input name="model" type="text" id="model" value="{$model}" size="60" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">UPC:</td>
<td colspan="3">
<input name="UPC" type="text" id="UPC" value="{$UPC}" size="60" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">URL:</td>
<td colspan="3">
<input name="url" type="text" id="url" value="{$url}" size="60" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Description:</td>
<td colspan="3">
{$fckHtml}
</td>
</tr>
{foreach item = data from = $arrAttributes}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">{$data.name}:</td>
<td colspan="3">
<table width="100%" cellspacing="0" cellpadding="2">
{foreach name=att item=attribute from = $data.attribute}
{if $attribute.options|@count == 0}
{if $smarty.foreach.att.first == 'true'}
<tr>
<td>
{/if}
<label><input type="checkbox" name="attributes[]" value="{$attribute.id}" {$attribute.checked} />{$attribute.name}</label>
{if $smarty.foreach.att.last == 'true'}
</td>
{/if}
{else}
<tr>
<td width="25%">
<label><input type="checkbox" name="attributes[]" value="{$attribute.id}" {$attribute.checked} />{$attribute.name}</label>
</td>
{foreach item=values from = $attribute.options}
<td width="75%">
{if $values.keyes == 'Price'}
{$values.keyes}: <input name="attribute_price_{$attribute.id}" type="text" size="5" maxlength="10" value="{$values.valuess / 100}">
{/if}
</td>
{/foreach}
{if $smarty.foreach.att.last != 'true'}
</tr>
{/if}
{/if}
{/foreach}
</tr>
</table>
</td>
</tr>
{/foreach}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Status:</td>
<td colspan="3">{html_radios name="status" options=$arrStatus checked=$StatusS separator=" "}
<font color="#FF0000">*</font></td>
</tr>
<!-- <tr>
<td height="30" align="right"></td>
<td colspan="3"><img src="../images/pixel_black.gif" border="0" alt="" width="100%" height="1"></td>
</tr> -->
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"></td>
<td height="23" colspan="3">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="productID" type="hidden" id="productID" value="{$productID}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listProduct_Add.htm | HTML | asf20 | 8,298 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="10%" align="center">ID</td>
<td width="10%" align="center">Order</td>
<td width="40%"> Name</td>
<td width="10%">Status</td>
<td width="30%" align="center">Operation | <b><a href="listMenuGroup_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="5" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=menu from=$arrMenuGroupList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="center">{$menu.id}</td>
<td align="center">{$menu.orders}</td>
<td > {$menu.name}</td>
<td> {$menu.status}</td>
<td align="center">
{section name=opItem loop=$arrOperateInfo}
{if $smarty.section.opItem.index != 0}
|
{/if}
<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$menu.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
{/section}</td>
</tr>
{/foreach}
</table>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="left" width="20%">{$PAGE_BAR}</td>
<td colspan="2" align="center" width="80%"></td>
</tr>
</table>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listMenuGroup.htm | HTML | asf20 | 1,939 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
if (valid.isEmpty("menuName","Menu group name")){
return false;
}else if (valid.isEmpty("orders","Order number")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000" style="margin:0px;padding:0px;">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="20%">Add Menu Group</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Name:</td>
<td colspan="2">
<input name="menuGroupName" type="text" id="menuGroupName" value="{$menuGroupName}" maxlength="40">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Order:</td>
<td colspan="3"><input name="orders" id="orders" type="text" value="{$orders}">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"> </td>
<td colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}"> <input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listMenuGroup_add.htm | HTML | asf20 | 2,300 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<body bgcolor="#FFFFFF" text="#000000"><form name="fm" method="get" action="">
<table width="100%" cellspacing="1" cellpadding="4">
<tr>
<td colspan="7" align="left">
<label>User ID: <input name="keyword" type="text" id="keyword" value="{$keyword}" />
<input type="submit" name="Submit" id="Submit" value="Search" onclick="return !validDefault.isEmpty('keyword','Keyword')" />
</label> </td>
</tr>
<tr bgcolor="#E4E4E4">
<td width="10%" align="center">ID</td>
<td width="20%"> User Name</td>
<td width="20%"> Login Time</td>
<td width="20%"> Logout Time</td>
<td width="20%"> IP</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="5" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="center">{$data.id}</td>
<td> {$data.username}</td>
<td> {$data.logintime}</td>
<td> {$data.logouttime}</td>
<td> {$data.ip}</td>
</tr>
{/foreach}
</table><input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}"></form>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="center">{$PAGE_BAR}</td>
</tr>
</table>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listLoginLog.htm | HTML | asf20 | 1,851 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
{literal}
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
var theform = window.document.form1
if (valid.isEmpty("name"," name")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="2">
<tr bgcolor="#E4E4E4">
<td width="15%"> Add Product</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="15%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
{foreach item=data from = $arrRelated}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right"><b>Related Product</b>[ {$data.relatedProdID} ]:</td>
<td> {$data.name}</td>
<td align="left"> <A href="?action=delete&menuGid={$menuGid}&menuid={$menuid}&relatedid={$data.id}&id={$id}&backurl_base64={$backurl_base64}" target="_self"><font color="#FF0000">Delete</font></A> </td>
</tr>
{/foreach}
</tr>
<tr bgcolor="#E9EDED" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#E9EDED'">
<td colspan="3" height="30"> New Related Product</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Class:</td>
<td colspan="2">
<label><select name="relatedClassID" id="relatedClassID">{html_options options=$arrRelated_class selected=$arrRelated_classID}</select></label>
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Product:</td>
<td colspan="2">
<select name="productID" id="productID">{html_options options=$arrProducts selected=$productID}</select>
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"></td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listProduct_Related.htm | HTML | asf20 | 3,204 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
if (valid.isEmpty("name","User name")){
return false;
}else if (!valid.isCompareEN("password1", "password2", "Password", 6, 12)){
return false;
}else if (!valid.isEmailEN("email", "Email", "allowEmpty")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="2">
<tr bgcolor="#E4E4E4">
<td width="20%"> Add User</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">User Group:</td>
<td colspan="2"><select name="groupid" id="groupid">{html_options options=$arrUserGroup selected=$groupidS}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Name:</td>
<td colspan="2">
<input name="name" type="text" id="name" value="{$name}" maxlength="20">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Password:</td>
<td height="23" colspan="2">
<input name="password1" type="password" id="password1" value="{$password1}" maxlength="12">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Re-type Password :</td>
<td colspan="2">
<input name="password2" type="password" id="password2" value="{$password2}" maxlength="12">
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">First Name:</td>
<td colspan="2">
<input name="FirstName" type="text" id="FirstName" value="{$FirstName}" maxlength="20">
</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Middle Name:</td>
<td colspan="2">
<input name="MiddleName" type="text" id="MiddleName" value="{$MiddleName}" maxlength="20"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Last Name:</td>
<td colspan="2">
<input name="LastName" type="text" id="LastName" value="{$LastName}" maxlength="20"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Zip Code:</td>
<td colspan="2">
<input name="zipcode" type="text" id="zipcode" value="{$zipcode}" maxlength="20"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Phone:</td>
<td colspan="2">
<input name="telephone" type="text" id="telephone" value="{$telephone}" maxlength="20">
</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Cellular Phone:</td>
<td colspan="2">
<input name="mobile" type="text" id="mobile" value="{$mobile}" maxlength="11"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Tax:</td>
<td colspan="2">
<input name="fax" type="text" id="fax" value="{$fax}" maxlength="20"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Email:</td>
<td colspan="2">
<input name="email" type="text" id="email" value="{$email}" size="40" maxlength="60">
</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Url:</td>
<td colspan="2">
<input name="url" type="text" id="url" value="{$url}" size="40" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Password Question:</td>
<td colspan="2">
<input name="pwdQuestion" type="text" id="pwdQuestion" value="{$pwdQuestion}" size="40" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Password Answer:</td>
<td colspan="2">
<input name="pwdAnswer" type="text" id="pwdAnswer" value="{$pwdAnswer}" size="40" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Address:</td>
<td colspan="2">
<input name="address" type="text" id="address" value="{$address}" size="50" maxlength="250"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Status:</td>
<td colspan="2">{html_radios name="status" options=$arrStatus checked=$StatusS separator=" "}
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"></td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listUser_Add.htm | HTML | asf20 | 7,707 |
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="ltr" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<title>Internal System</title>
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
<!-- body_text //-->
<table border="0" width="800" cellspacing="0" cellpadding="2" align="center">
<tr>
<td colspan="2" height="30"> </td>
</tr>
<tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="640" class="pageHeading">
{$myStore.values|nl2br}
</td>
<td width="160" class="pageHeading" align="left"><!-- <img src="../images/logo_smarter.gif" border="0" alt="{$HOME_URL}" title=" {$HOME_URL} "> --></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td colspan="2"><img src="../images/pixel_black.gif" border="0" alt="" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><b>SOLD TO:</b></td>
</tr>
<tr>
<td class="main">
{$arrOrders.billing_name}<br>
{$arrOrders.billing_street}<br>
{$arrOrders.billing_city}, {$arrOrders.billing_state} {$arrOrders.billing_postcode}<br>
{$arrOrders.billing_country}
</td>
</tr>
<tr>
<td><img src="../images/pixel_trans.gif" border="0" alt="" width="1" height="5"></td>
</tr>
<tr>
<td class="main"></td>
</tr>
<tr>
<td class="main"><a href="mailto:{$arrOrders.customers_email}"><u>{$arrOrders.customers_email}</u></a></td>
</tr>
</table></td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><b>SHIP TO:</b></td>
</tr>
<tr>
<td class="main">
{$arrOrders.delivery_name} <br>
{$arrOrders.delivery_street} <br>
{$arrOrders.delivery_city}, {$arrOrders.delivery_state} {$arrOrders.delivery_postcode}<br>
{$arrOrders.delivery_country}
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="../images/pixel_trans.gif" border="0" alt="" width="1" height="10"></td>
</tr>
<tr>
<td><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><b>Order Number:</b></td>
<td class="main">{$arrOrders.id}</td>
</tr>
</table></td>
</tr>
<tr>
<td><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><b>Payment Method:</b></td>
<td class="main">{$arrOrders.payment_method}</td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="../images/pixel_trans.gif" border="0" alt="" width="1" height="10"></td>
</tr>
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><!--
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr bgcolor="#E4E4E4" height="21">
<td class="main" colspan="3"><b>Products</b></td>
</tr>
{foreach item=data from=$arrOrdersProducts}
<tr>
<td class="main" align="right" valign="top" width="30"><b>{$data.quantity}</b> x</td>
<td class="main" valign="top">{$data.name}<br><nobr><small>
{foreach item=attri from = $data.attributes}
<i> - {$attri.attribute}: {$attri.attributeValue}
</i><br>
{/foreach}
</small></nobr></td>
<td class="main" align="right" valign="top">${$data.finalPrice / 100}</td>
</tr>
{/foreach}
</table> -->
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr bgcolor="#E4E4E4">
<td width="65%">Products</td>
<td width="5%">Model</td>
<td width="5%">Tax</td>
<td width="5%">Price</td>
<td width="10%">Final Price</td>
<td width="5%">Quantity</td>
<td width="5%">Total</td>
</tr>
{foreach item=data from=$arrOrdersProducts}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td > <font style="font-size:24px">{$data.quantity} X </font>
<font style="font-size:12px">{$data.name}</font><br><nobr><small>
{foreach item=attri from = $data.attributes}
<i> - <font style="font-size:11px">{$attri.attribute}</font>: <font style="font-size:14px">{$attri.attributeValue}
{if $attri.attributeValuePrice > 0}
(${$attri.price_prefix}{$attri.attributeValuePrice / 100})
{/if}</font>
</i><br>
{/foreach}
</small></nobr>
</td>
<td > {$data.model}</td>
<td > {$data.tax / 100} %</td>
<td> ${$data.price / 100}</td>
<td> ${$data.finalPrice / 100}</td>
<td> {$data.quantity}</td>
<td> ${$data.finalPrice * $data.quantity / 100}</td>
</tr>
{/foreach}
<tr>
<td align="right" colspan="8">
</td>
</tr>
{foreach item=data from=$arrAccountList}
<tr height="20">
<td colspan="6" align="right"><b>{$data.comments}</b>:</td>
<td align="left"> ${$data.amount / 100|string_format: "%.2f"}</td>
</tr>
{/foreach}
<tr>
<td align="right" colspan="8">
</td>
</tr>
<tr>
<td align="right" colspan="8">
</td>
</tr>
</table>
<!--
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="5%">Amount</td>
<td width="10%">Amount Class</td>
<td width="85%">Comments</td>
</tr>
{foreach item=data from=$arrAccountList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td> ${$data.amount / 100}</td>
<td> {$data.classes}</td>
<td> {$data.comments}</td>
</tr>
{/foreach}
</table> -->
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- body_text_eof //-->
<br>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listOrders_Invoice.htm | HTML | asf20 | 7,144 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
if (valid.isEmpty("question","Question")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="20%">增加一咨询</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">返 回</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">咨询问题:</td>
<td height="23" colspan="2"><font color="#FF0000">
<textarea name="question" id="question" cols="100" rows="2">{$question}</textarea>
<label></label>
*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">咨询答案:</td>
<td height="23" colspan="2">{$fckHtml}</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">状态:</td>
<td height="23" colspan="2"> {html_radios name="status" options=$arrStatus checked=$statusS separator=" "}</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"> </td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="提交" onClick="return checkForm()">
<input type="reset" name="Reset" value="重置">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listQA_Add.htm | HTML | asf20 | 2,490 |
<html>
<head>
<TITLE>Intenal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="5%">ID</td>
<td width="15%">Name</td>
<td width="65%">URL</td>
<td width="15%">Operation | <b><a href="listManufacturer_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="4" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td> {$data.id}</td>
<td > {$data.name}</td>
<td> {$data.URL}</td>
<td>{section name=opItem loop=$arrOperateInfo}
{if $smarty.section.opItem.index != 0}
|
{/if}
<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
{/section}</td>
</tr>
{/foreach}
</table>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="left" width="60%">{$PAGE_BAR}</td>
<td align="right" width="40%"></td>
</tr>
</table>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listManufacturer.htm | HTML | asf20 | 1,627 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="5%">ID</td>
<td width="5%">Sort</td>
<td width="5%">Level</td>
<td width="20%">Name</td>
<td width="10%">Is Leaf</td>
<td width="45%">Summary</td>
<td width="10%">Operation | <b><a href="listInfoClass_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="4" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td>{$data.id}</td>
<td>{$data.sorts}</td>
<td>{$data.level}</td>
<td>{$data.name}</td>
<td>{$data.isLeaf}</td>
<td>{$data.summary}</td>
<td>{section name=opItem loop=$arrOperateInfo}
{if $smarty.section.opItem.index != 0}
|
{/if}
<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
{/section}</td>
</tr>
{/foreach}
</table>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="left" width="80%">{$PAGE_BAR}</td>
<td align="center" width="20%"></td>
</tr>
</table>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listInfoClass.htm | HTML | asf20 | 1,810 |
<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
var theform = window.document.form1
if (valid.isEmpty("name","manufacturer name")){
return false;
}else{
return true;
}
}
</script>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="2">
<tr bgcolor="#E4E4E4">
<td width="20%"> Add Manufacturer</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Name:</td>
<td colspan="2">
<input name="name" type="text" id="name" value="{$name}" maxlength="20">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">URL:</td>
<td colspan="2">
<input name="url" type="text" id="url" value="{$url}" size="40" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"></td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listManufacturer_Add.htm | HTML | asf20 | 2,281 |
<HTML>
<HEAD>
<TITLE>Internal Management System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
</HEAD>
<style>
tr{FONT-FAMILY: \"Arial, Helvetica, sans-serif\"; font-size: 14px }
</style>
<BODY leftMargin=0 topMargin=0>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="center">
<h2><b>Welcome
To Internal System
</b></h2>
</td>
</tr>
</table>
<P> </P>
</BODY></HTML>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/welcome.htm | HTML | asf20 | 514 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
if (valid.isEmpty("name","User group name")){
return false;
}else if (valid.isEmpty("namecn","User group chinese name")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000" style="margin:0px;padding:0px;">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="20%" >Add User Group</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Name:</td>
<td colspan="2">
<input name="name" type="text" id="name" value="{$name}" maxlength="40">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"> </td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listUserGroup_Add.htm | HTML | asf20 | 1,981 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="get" action="">
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="7" align="left"> <font color="#FF0000">Keyword :
<input name="keyword" type="text" id="keyword" value="{$keyword}" size="60" maxlength="60" style="height:22px; margin-bottom:2px;">
<select name="searchType" style="height:22px; margin-top:0px;">
{html_options options=$arrSearchType selected=$searchTypeS}
</select>
<input type="submit" name="Submit" value="Search"></font>
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
</td>
<td width="5%" align="right"> <A href="batchProduct.php?menuGid={$menuGid}&menuid={$menuid}" target="_self">Upload Products</A> </td>
</tr>
<tr bgcolor="#E4E4E4">
<td width="5%"> ID</td>
<td width="30%"><A href="?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}&sort=name" target="_self">Name</A></td>
<td width="5%">price</td>
<td width="5%"><A href="?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}&sort=new&orderSuffix={$orderSuffix}" target="_self">New</A></td>
<td width="5%"><A href="?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}&sort=featured&orderSuffix={$orderSuffix}" target="_self">Featured</A></td>
<td width="5%"><A href="?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}&sort=hot&orderSuffix={$orderSuffix}" target="_self">Hot</A></td>
<td width="5%"><A href="?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}&sort=status&orderSuffix={$orderSuffix}" target="_self">Status</A></td>
<td width="40%">Operation | <b><a href="listProduct_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="8" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td> {$data.id}</td>
<td >
{if $checkPID == $data.id}
<font color="#FF0000">{$data.name}</font>
{else}
{$data.name}
{/if}
</td>
<!--<td> <span title="{$data.description|strip_tags}">{$data.description|strip_tags|truncate:100:"..."}</span></td>-->
<td > ${$data.price/100}</td>
<td >
{if $data.isNew == 1}
Yes
{else}
No
{/if}
</td>
<td >
{if $data.isFeatured == 1}
Yes
{else}
No
{/if}
</td>
<td >
{if $data.isHot == 1}
Yes
{else}
No
{/if}
</td>
<td > {$data.status}</td>
<td>
{if $data.isNew == 1}
<a href="listProduct_Set.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}&action=new&value=0" onClick="return validDefault.isConfirmOperate('set not hot product')">not New</a>
{else}
<a href="listProduct_Set.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}&action=new&value=1" onClick="return validDefault.isConfirmOperate('set hot product')">New</a>
{/if}
|
{if $data.isFeatured == 1}
<a href="listProduct_Set.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}&action=featured&value=0" onClick="return validDefault.isConfirmOperate('set not hot product')">not Featured</a>
{else}
<a href="listProduct_Set.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}&action=featured&value=1" onClick="return validDefault.isConfirmOperate('set hot product')">Featured</a>
{/if}
|
{if $data.isHot == 1}
<a href="listProduct_Set.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}&action=hot&value=0" onClick="return validDefault.isConfirmOperate('set not hot product')">not Hot</a>
{else}
<a href="listProduct_Set.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}&action=hot&value=1" onClick="return validDefault.isConfirmOperate('set hot product')">Hot</a>
{/if}
|
<A href="listProduct_Images.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" target="_self">Images</A>
|
<A href="listProduct_Related.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" target="_self">Related</A>
|
{section name=opItem loop=$arrOperateInfo}
{if $smarty.section.opItem.index != 0}
|
{/if}
<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
{/section}
</td>
</tr>
{/foreach}
</table>
</form>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="left" width="60%">{$PAGE_BAR}</td>
<td align="right" width="40%"></td>
</tr>
</table>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listProduct.htm | HTML | asf20 | 5,637 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
<tr>
<td width="10%" class="row2">Editor</td>
<td width="20%" class="row2">Title</td>
<td width="30%" class="row2">Content</td>
<td width="10%" class="row2">Date</td>
<td width="5%" class="row2">Type</td>
<td width="10%" class="row2">I P</td>
<td width="5%" class="row2">Status</td>
<td width="10%" class="row2">Operation | <b><a href="listMessage_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
</tr>
{section name=sec loop=$arrList}
<tr onMouseOver="setPointer(this,2,'over');" onMouseOut="setPointer(this,2,'out');" onMouseDown="setPointer(this,2,'click')">
<td><div align="left"> {$arrList[sec].name}</td>
<td>{$arrList[sec].title}</td>
<td> {$arrList[sec].content}</td>
<td>{$arrList[sec].addtime}</td>
<td>{$arrList[sec].type}</td>
<td>{$arrList[sec].fromip}</td>
<td>{$arrList[sec].status}</td>
<td>{section name=opItem loop=$arrOperateInfo}
{if $smarty.section.opItem.index != 0}
|
{/if}
<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$arrList[sec].id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
{/section}</td>
</tr>
{section name=sec1 loop=$arrList[sec].arrReply}
<tr onMouseOver="setPointer(this,2,'over');" onMouseOut="setPointer(this,2,'out');" onMouseDown="setPointer(this,2,'click')">
<td class="replyMess"><div align="left"> {$arrList[sec].arrReply[sec1].title}</td>
<td class="replyMess">{$arrList[sec].arrReply[sec1].level}</td>
<td class="replyMess"> {$arrList[sec].arrReply[sec1].messnamecn}</td>
<td class="replyMess">{$arrList[sec].arrReply[sec1].addtime}</td>
<td class="replyMess">{$arrList[sec].arrReply[sec1].type}</td>
<td class="replyMess">{$arrList[sec].arrReply[sec1].fromip}</td>
<td class="replyMess">{$arrList[sec].arrReply[sec1].status}</td>
<td class="replyMess">
<a href="#" onClick="disMessage('{$arrList[sec].arrReply[sec1].id}');">{$lanquery}</a>
<a href="replyMessage.php?type=3&acceptid={$arrList[sec].arrReply[sec1].id}" target="_self">{$lanreply}</a>
<a href="listMessage.php?action=del&id={$arrList[sec].arrReply[sec1].id}" target="_self">{$delete}</a></td>
</tr>
{/section}
{/section}
<tr>
</table>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="left" width="39%">{$PAGE_BAR}</td>
<td align="center" width="61%"></td>
</tr>
</table>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listMessage.htm | HTML | asf20 | 3,029 |
<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<script language="JavaScript" src="../js/calender.js" type="text/JavaScript"></script>
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
var theform = window.document.form1
if (valid.isEmpty("newPrice","special price")){
return false;
}else{
return true;
}
}
</script>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="2">
<tr bgcolor="#E4E4E4">
<td width="20%"> Add Product Promotion</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Product:</td>
<td colspan="2">
<select name="productID" id="productID">{html_options options=$arrProducts selected=$productID}</select>
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Description:</td>
<td colspan="2">
<textarea cols="80" rows="10" name="descript"></textarea>
</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"></td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listPromotion_Add.htm | HTML | asf20 | 2,412 |
<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" height="23" cellspacing="0" cellpadding="2">
<tr bgcolor="#E4E4E4">
<td width="15%"> Product Images</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
{foreach item=data key=attributeID from=$arrAllImage}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Image of {$data.attributeName}:</td>
<td height="23" colspan="2">
<table width="100%" cellspacing="0" cellpadding="2">
{foreach item=image key=key from=$data.imageIDs}
<tr>
<td width="15%" align="right"> <img src="../pic/thumbnail.php?width=100&height=100&fileName={$image.imageID}.{$image.imageExt}" border="0"></td>
<td width="85%" align="left"><font color="#FF0000"> <form method="get" action="">
<A href="?action=delete&menuGid={$menuGid}&menuid={$menuid}&imageid={$image.imageID}&id={$id}&backurl_base64={$backurl_base64}" target="_self">Delete</A> |
{if $image.isMain == 'yes'}
<A href="?action=setMain&menuGid={$menuGid}&menuid={$menuid}&piid={$image.id}&id={$id}&ismain=no&backurl_base64={$backurl_base64}" target="_self">Set Minor</A>
{else}
<A href="?action=setMain&menuGid={$menuGid}&menuid={$menuid}&piid={$image.id}&id={$id}&ismain=yes&backurl_base64={$backurl_base64}" target="_self">Set Main</A>
{/if}
|
<input type="submit" name="action" value="Charge Color To">
<select name="changeAttributeID">
{foreach item=data from=$arrAttributes}
{if $changeAttributeID == $data.attributeID}
<option value="{$data.attributeID}" selected="selected">{$data.name}</option>
{else}
<option value="{$data.attributeID}">{$data.name}</option>
{/if}
{/foreach}
</select>
<input name="piid" type="hidden" value="{$image.id}">
<input name="backurl_base64" type="hidden" value="{$backurl_base64}">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="id" type="hidden" id="id" value="{$id}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}">
</form>
</font>
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
{/foreach}
{if $arrExistedImage|@count > 0}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">Existed Images:</td>
<td height="23" colspan="2">
<form method="post" action="">
{foreach item=data key=imageid from=$arrExistedImage}
<img src="../pic/thumbnail.php?width=100&height=100&fileName={$imageid}.{$data}" border="0">
<input name="existedImages[]" type="hidden" value="{$imageid}">
{/foreach}
<input name="attributeIDRepeat" type="hidden" value="{$attributeIDRepeat}">
<input type="submit" name="action" value="Use Existed Images">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="id" type="hidden" id="id" value="{$id}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}">
</form>
</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="50" align="right"> </td>
<td height="23" colspan="2">
</td>
</tr>
{/if}
{foreach item=data from=$arrAttributes}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right">{$data.name} Color:</td>
<td height="23" colspan="2">
<form method="post" action="" enctype="multipart/form-data">
<input name="image[]" type="file" size="45">
<input name="attributeID" type="hidden" id="attributeID" value="{$data.attributeID}">
<input type="submit" name="action" value="Upload">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="id" type="hidden" id="id" value="{$id}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}">
</form>
</td>
</tr>
{/foreach}
</table>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listProduct_Images.htm | HTML | asf20 | 5,428 |
<html>
<head>
<title>info detail</title>
<LINK href="../css/style.css" type=text/css rel=stylesheet>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
<div style="padding-top:5px">
<table width="96%" height="95%" border=0 align="center" cellpadding=5 cellspacing=0>
<tr>
<td align="left" valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#333333" bgcolor="#CCCCCC">
<tr height=20 bgcolor="#E4E4E4" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td width="10%" height="25" align="right"> <b>Name</b> : </td>
<td width="80%" align="left">{$arrInfo.name}</td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr height=20 bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="25" align="right"> <b>Price</b> : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">${$arrInfo.price/100}</font></td>
</tr>
<tr height=20 bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="25" align="right"> <b>Tax</b> : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$arrInfo.taxRate}</font></td>
</tr>
<tr height=20 bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="25" align="right"> <b>Weight</b> : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$arrInfo.weight/100}</font></td>
</tr>
<tr height=20 bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="25" align="right"> <b>Model</b> : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$arrInfo.model}</font></td>
</tr>
<tr height=20 bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="25" align="right"> <b>UPC</b> : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$arrInfo.UPC}</font></td>
</tr>
{foreach item=data key=key from=$attributes}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right"><b>{$key}</b> : </td>
<td colspan="3">
<table width="100%" cellspacing="0" cellpadding="2">
{foreach item=attribute from=$data.attri}
<tr><td>{$attribute}</td></tr>
{/foreach}
</table>
</td>
</tr>
{/foreach}
<tr height=20 bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="25" align="right"> <b>Manufacturer</b> : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$arrInfo.manufacturer}</font></td>
</tr>
<tr height=20 bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="25" align="right"> <b>URL</b> : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$arrInfo.url}</font></td>
</tr>
{foreach item=data key=attributeID from=$arrAllImage}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23" align="right"><b>{$data.attributeName} Image</b>:</td>
<td height="23" colspan="2">
<table width="100%" cellspacing="0" cellpadding="2">
{foreach item=image key=key from=$data.imageIDs}
<tr>
<td width="15%" align="left">
<img src="../pic/thumbnail.php?width=100&height=100&fileName={$image.imageID}.{$image.imageExt}" border="0">
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
{/foreach}
<tr height=20 bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="25" align="right"> Description : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$arrInfo.description}</font></td>
</tr>
</table>
</td>
</tr>
</table></div>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listProduct_View.htm | HTML | asf20 | 5,736 |
<html>
<head>
<title>info detail</title>
<LINK href="../css/style.css" type=text/css rel=stylesheet>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
<div style="padding-top:5px">
<table width="96%" height="95%" border=0 align="center" cellpadding=5 cellspacing=0>
<tr>
<td align="left" valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#333333" bgcolor="#CCCCCC">
<tr height=20 bgcolor="#E4E4E4">
<td width="10%" height="25" align="right"> Name : </td>
<td width="80%" align="left">{$arrMerInfo.name}</td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr height=20 bgcolor="#FFFFFF">
<td height="25" align="right"> URL : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$arrMerInfo.URL}</font></td>
</tr>
<tr height=20 bgcolor="#FFFFFF">
<td height="25" align="right"> Add Time : </td>
<td height="25" colspan="2" align="left"><font style="line-height:20px">{$arrMerInfo.createdTime}</font></td>
</tr>
</table>
</td>
</tr>
</table></div>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listManufacturer_View.htm | HTML | asf20 | 1,551 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<body bgcolor="#FFFFFF" text="#000000"><form name="form1" method="get" action="">
<table width="100%" cellspacing="1" cellpadding="4">
<tr>
<td colspan="7" align="left">
<label>Select User Group:
<select name="groupID" id="groupID" onChange="return submit();">{html_options options=$arrUserGroup selected=$groupidS}</select>
</label> </td>
</tr>
<tr bgcolor="#E4E4E4">
<td width="10%" align="center">ID</td>
<td width="20%"> User Group</td>
<td width="10%"> Login Name</td>
<td width="15%"> User Name</td>
<td width="15%"> Add Date</td>
<td width="10%"> Status</td>
<td width="20%"> Operation | <b><a href="listUser_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="7" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=item from=$arrUserList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="center">{$item.id}</td>
<td> {$item.gname}</td>
<td> {$item.name}</td>
<td> {$item.FirstName} {$item.MiddleName} {$item.LastName}</td>
<td> {$item.regtime}</td>
<td>{$item.status}</td>
<td>{section name=opItem loop=$arrOperateInfo}
{if $smarty.section.opItem.index != 0}
|
{/if}
<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$item.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
{/section}</td>
</tr>
{/foreach}
</table><input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}"></form>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="left" width="20%">{$PAGE_BAR}</td>
<td align="center" width="80%"></td>
</tr>
</table>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listUser.htm | HTML | asf20 | 2,488 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<body bgcolor="#FFFFFF" text="#000000"><form name="fm" method="get" action="">
<table width="100%" cellspacing="1" cellpadding="4">
<tr>
<td colspan="7" align="left">
Type: <select name="searchType" id="searchType">{html_options options=$arrSearchType selected=$searchTypeS}</select>
Keyword:<input name="keyword" type="text" id="keyword" value="{$keyword}" />
<input type="submit" name="Submit" id="Submit" value="Search" onclick="return !validDefault.isEmpty('keyword','Keyword')" />
</td>
</tr>
<tr bgcolor="#E4E4E4">
<td width="5%"> Page</td>
<td width="10%"> IP</td>
<td width="10%"> Visit Time</td>
<td width="20%"> From URL</td>
<td width="45%"> User Agent</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="7" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td> {$data.pageid}</td>
<td> {$data.ip}</td>
<td> {$data.visitDate} {$data.visitTime}</td>
<td> {$data.urlFrom}</td>
<td> {$data.userAgent}</td>
</tr>
{/foreach}
</table>
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}"></form>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="center">{$PAGE_BAR}</td>
</tr>
</table>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listAccessLog.htm | HTML | asf20 | 1,958 |
<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
{literal}
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
var theform = window.document.form1
if (valid.isEmpty("name","manufacturer name")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="2">
<tr bgcolor="#E4E4E4">
<td width="20%"> Edit Manufacturer</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Name:</td>
<td colspan="2">
<input name="name" type="text" id="name" value="{$name}" maxlength="20">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">URL:</td>
<td colspan="2">
<input name="url" type="text" id="url" value="{$url}" size="40" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"></td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="id" type="hidden" id="id" value="{$id}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listManufacturer_Edit.htm | HTML | asf20 | 2,314 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="10%" align="center">ID</td>
<td width="25%"> User Group</td>
<td width="10%"> Status</td>
<td width="30%" align="center">Operation | <b><a href="listUserGroup_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="5" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=data from=$arrUserGroupList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="center">{$data.id}</td>
<td width="25%"> {$data.name}</td>
<td> {$data.status}</td>
<td align="center"> {section name=opItem loop=$arrOperateInfo}
{if $smarty.section.opItem.index != 0}
|
{/if}
<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
{/section}</td>
</tr>
{/foreach}
</table>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="left" width="20%">{$PAGE_BAR}</td>
<td align="center" width="80%"></td>
</tr>
</table>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listUserGroup.htm | HTML | asf20 | 1,862 |
<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
{literal}
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<script language="JavaScript" src="../js/calender.js" type="text/JavaScript"></script>
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
var theform = window.document.form1
if (valid.isEmpty("name","manufacturer name")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="2">
<tr bgcolor="#E4E4E4">
<td width="20%"> Edit Promotion Product</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Product:</td>
<td colspan="2">
<select name="productID" id="productID">{html_options options=$arrProducts selected=$productID}</select>
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Description:</td>
<td colspan="2">
<textarea cols="80" rows="10" name="descript">{$descript}</textarea>
</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"></td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="id" type="hidden" id="id" value="{$id}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listPromotion_Edit.htm | HTML | asf20 | 2,516 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Management System</title>
<script language="javascript" src="./js/Validation.js" type="text/JavaScript"></script>
<LINK href="./css/style.css" type=text/css rel=stylesheet>
<script language="javascript">
<!--
var valid = new Validation();
function checkLogin()
{
if(valid.isEmpty("username","login name")){
return false;
}else if(valid.isEmpty("password","login password")){
return false;
}else
return true;
}
-->
</script>
</head>
<body topmargin="0" leftmargin="0">
<table cellspacing="0" cellpadding="0" width="640" height="480" align="center" border="0">
<tr>
<td>
<table cellspacing="0" cellpadding="0" width="100%" border=0>
<tr>
<td align="left" valign="bottom"> </td>
<td align="right" valign="bottom">
<font face="arial" color="#0000cc" size="-2">Homepage | Get Password</font> </td>
</tr>
<tr><td colspan="2" height="10"></td></tr>
</table>
<table cellspacing="0" cellpadding="0" width="100%" border="1">
<tr>
<td>
<form action="./login.php" method="post" name="fm" onSubmit="return checkLogin();">
<table cellspacing="5" cellpadding="2" width="100%" border="0">
<tr><td colspan="2" height="5"></td></tr>
<tr>
<td colspan="2" align="center"><b><font color="black" size="+1" face="arial">User Login</font></b></td>
</tr>
<tr><td colspan="2" height="5"></td></tr>
<tr>
<td align="right"><font face="arial" color="black" size="-1">Username:</font> </td>
<td width="60%"><input style="width: 150px" name="username"></td>
</tr>
<tr>
<td align="right"><font face="arial" color="black" size="-1">Password:</font> </td>
<td width="60%">
<input style="width: 150px" type="password" name="password">
</td>
</tr>
<tr><td colspan="2" height="10"></td></tr>
<tr><td colspan="2" align="center">
<input name="Submit" type="submit" class="submitbutton" value="Submit" />
</td>
</tr>
<tr><td colspan="2" height="5"></td></tr>
</table>
</form>
</td>
</tr>
</table>
<table cellspacing="4" cellpadding="0" width="100%" border="0">
<tr>
<td align="left"> <span class="copyright">Copyright © Marsems. 2002-2005. All Rights Reserved.</span></td>
<td align="right"class="copyright"> MARSEMS INTERNAL MANAGEMENT ©</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/login.htm | HTML | asf20 | 2,855 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
if (valid.isEmpty("name","User group name")){
return false;
}else if (valid.isEmpty("namecn","User group chinese name")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000" style="margin:0px;padding:0px;">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="20%">User Group</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Name:</td>
<td colspan="2" >
<input name="name" type="text" id="name" value="{$name}" size="25" maxlength="40">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Chinese Name:</td>
<td colspan="2">
<input name="namecn" type="text" id="namecn" value="{$namecn}" size="25" maxlength="40">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"> </td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="id" type="hidden" id="id" value="{$id}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listUserGroup_Edit.htm | HTML | asf20 | 2,388 |
<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
<script language="JavaScript" src="../js/calender.js" type="text/JavaScript"></script>
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
var theform = window.document.form1
if (valid.isEmpty("newPrice","special price")){
return false;
}else{
return true;
}
}
</script>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="2">
<tr bgcolor="#E4E4E4">
<td width="20%"> Add Special Product</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Product:</td>
<td colspan="2">
<select name="productID" id="productID">{html_options options=$arrProducts selected=$productID}</select>
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Special Price:</td>
<td colspan="2">
<input name="newPrice" type="text" id="newPrice" value="{$newPrice}" size="20" maxlength="80">
<font color="#FF0000"> *</font>
</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Expiry Date:</td>
<td colspan="2">
<input name="expireDate" type="text" id="expireDate" value="{$expireDate}" maxlength="20" onKeyDown="SelectDate(this,'yyyy-MM-dd')" onFocus="SelectDate(this,'yyyy-MM-dd')">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"></td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listSpecial_Add.htm | HTML | asf20 | 2,952 |
<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="5%">ID</td>
<td width="40%">Name</td>
<td width="5%">Old Price</td>
<td width="5%">Special Price</td>
<td width="30%">Status</td>
<td width="15%">Operation | <b><a href="listSpecial_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td colspan="4" align="center"><font color="#FF0000">{$error_message}</font></td>
</tr>
{foreach item=data from=$arrDataList}
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td> {$data.id}</td>
<td > {$data.name}</td>
<td> <span style="text-decoration: line-through;">${$data.price / 100}</span></td>
<td> <font color="#FF0000">${$data.newPrice / 100}</font></td>
<td > {$data.status}</td>
<td>{section name=opItem loop=$arrOperateInfo}
{if $smarty.section.opItem.index != 0}
|
{/if}
<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
{/section}</td>
</tr>
{/foreach}
</table>
<table width="100%" cellspacing="0" cellpadding="4">
<tr>
<td align="left" width="60%">{$PAGE_BAR}</td>
<td align="right" width="40%"></td>
</tr>
</table>
</body>
</html> | 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listSpecial.htm | HTML | asf20 | 1,996 |
<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();
function checkForm(){
if (valid.isEmpty("name","User name")){
return false;
}else if (!valid.isCompareEN("password1", "password2", "Password", 6, 12)){
return false;
}else if (!valid.isEmailEN("email", "Email", "allowEmpty")){
return false;
}else{
return true;
}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" cellspacing="0" cellpadding="4">
<tr bgcolor="#E4E4E4">
<td width="20%"> Edit User</td>
<td width="70%"><font color="#FF0000"> {$error_message}</font></td>
<td width="10%" align="right"> <A href="{$backurl}" target="_self">Back</A> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">User Group:</td>
<td colspan="2"><select name="groupid" id="groupid">{html_options options=$arrUserGroup selected=$groupidS}</select>
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Name:</td>
<td colspan="2">
<input name="name" type="text" id="name" value="{$name}" maxlength="20" readonly>
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Password:</td>
<td height="23" colspan="2">
<input name="password1" type="password" id="password1" value="{$password1}" maxlength="12">
<font color="#FF0000"> *</font> </td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Re-type Password :</td>
<td colspan="2">
<input name="password2" type="password" id="password2" value="{$password2}" maxlength="12">
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">First Name:</td>
<td colspan="2">
<input name="FirstName" type="text" id="FirstName" value="{$FirstName}" maxlength="20">
</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Middle Name:</td>
<td colspan="2">
<input name="MiddleName" type="text" id="MiddleName" value="{$MiddleName}" maxlength="20"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Last Name:</td>
<td colspan="2">
<input name="LastName" type="text" id="LastName" value="{$LastName}" maxlength="20"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Zip Code:</td>
<td colspan="2">
<input name="zipcode" type="text" id="zipcode" value="{$zipcode}" maxlength="20"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Phone:</td>
<td colspan="2">
<input name="telephone" type="text" id="telephone" value="{$telephone}" maxlength="20">
</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Cellular Phone:</td>
<td colspan="2">
<input name="mobile" type="text" id="mobile" value="{$mobile}" maxlength="11"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Tax:</td>
<td colspan="2">
<input name="fax" type="text" id="fax" value="{$fax}" maxlength="20"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Email:</td>
<td colspan="2">
<input name="email" type="text" id="email" value="{$email}" size="40" maxlength="60">
</td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">URL:</td>
<td colspan="2">
<input name="url" type="text" id="url" value="{$url}" size="40" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Password Question:</td>
<td colspan="2">
<input name="pwdQuestion" type="text" id="pwdQuestion" value="{$pwdQuestion}" size="40" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Password Answer:</td>
<td colspan="2">
<input name="pwdAnswer" type="text" id="pwdAnswer" value="{$pwdAnswer}" size="40" maxlength="80"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="30" align="right">Address:</td>
<td colspan="2">
<input name="address" type="text" id="address" value="{$address}" size="50" maxlength="250"></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td align="right">Status:</td>
<td colspan="2">{html_radios name="status" options=$arrStatus checked=$StatusS separator=" "}
<font color="#FF0000">*</font></td>
</tr>
<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<td height="23"></td>
<td height="23" colspan="2">
<input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
<input type="reset" name="Reset" value="Reset">
<input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
<input name="menuid" type="hidden" id="menuid" value="{$menuid}">
<input name="id" type="hidden" id="id" value="{$id}">
<input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
</tr>
</table>
</form>
</body>
</html>
| 123gohelmetsv2 | trunk/admin/templates_sys_en-US/listUser_Edit.htm | HTML | asf20 | 7,775 |
<?php
include_once("../configure/admin.config.inc.php");//--> admin global var
include_once("db.inc.php"); //--> db global var
//include_once("account.inc.php"); //--> account var
include_once("Operation.php"); //--> Operation
include_once("Users.php"); //--> Users
//include_once("Account.php"); //--> Account
//include_once("AccountLog.php"); //--> AccountLog
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation($objSession->getLanguage()); //--> Operation instance
$objUsers = new Users($uid); //--> Users
//$objAccount = new Account($uid); //--> Account
//$objAccountLog = new AccountLog($uid); //--> AccountLog
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(isset($_GET['id']) && !empty($_GET['id'])){
$id = $_GET['id'];
$isReturn = $objUsers->editStatus($arrOperate, $id, "stop");
if($isReturn){
$error_message = 'Stop successfully.';
// $amount = $objAccountLog->isExistOperate($arrOperate, $id, SOURCE_USER, $id, SOURCE_TYPE_ADD);
// if($amount > 0)
// $objAccount->addAccounting($arrOperate, DEFAULT_LAN, $uid, $id, - $amount, SOURCE_USER, $id, SOURCE_TYPE_SUB, $_SERVER['REMOTE_ADDR']);
}else
$error_message = 'Stop failure.';
}
echo "<script language='javascript'>";
echo "alert(\"$error_message\");";
echo "location.href=\"".$_SERVER['HTTP_REFERER']."\";";
echo "</script>";
//$backurl = $_SERVER['HTTP_REFERER'];
//header("Location: $backurl");
?>
| 123gohelmetsv2 | trunk/admin/system/listUser_Stop.php | PHP | asf20 | 1,522 |
<?php
include_once("../configure/admin.config.inc.php"); //--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Smarty.class.php"); //--> out template
include_once("Operation.php"); //--> Operation
include_once("Users.php"); //--> user
include_once("UserGroup.php"); //--> User Group
include_once("Validation.php"); //--> validation
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation($objSession->getLanguage()); //--> Operation
$objUserGroup = new UserGroup($objSession->getLanguage(), $uid); //--> User Group
$objUser = new Users($uid); //--> user
$objValidation = new Validation(); //--> Validation
$error_message = '';
$strGroupID = '';
$strName = '';
$strPassword1 = '';
$strPassword2 = '';
$FirstName = '';
$MiddleName = '';
$LastName = '';
$address = '';
$zipcode = '';
$telephone = '';
$mobile = '';
$fax = '';
$email = '';
$url = '';
$pwdQuestion = '';
$pwdAnswer = '';
$strStatus = 'normal';
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(isset($_POST['Submit'])){
$strGroupID = $_POST['groupid'];
$strName = $_POST['name'];
$strPassword1 = $_POST['password1'];
$strPassword2 = $_POST['password2'];
$FirstName = $_POST['FirstName'];
$MiddleName = $_POST['MiddleName'];
$LastName = $_POST['LastName'];
$address = $_POST['address'];
$zipcode = $_POST['zipcode'];
$telephone = $_POST['telephone'];
$mobile = $_POST['mobile'];
$fax = $_POST['fax'];
$email = $_POST['email'];
$url = $_POST['url'];
$pwdQuestion = $_POST['pwdQuestion'];
$pwdAnswer = $_POST['pwdAnswer'];
$strStatus = $_POST['status'];
if(empty($strGroupID))
$error_message = 'The group ID should\'t be empty.';
else if(empty($strName))
$error_message = 'The user name should\'t be empty.';
else if(empty($strPassword1))
$error_message = 'The password should\'t be empty.';
else if(empty($strPassword2))
$error_message = 'The reset password should\'t be empty.';
else if($strPassword1 != $strPassword2){
$error_message = 'the two password is not different.';
}else if($objUser->IsExistFromName($strName)){
$error_message = 'the user name be existed.';
}else if(!$objValidation->isEmail($email, "empty")){
$error_message = 'The email should\'t be empty or invalid.';
}else if(empty($pwdQuestion))
$error_message = 'The password question should\'t be empty.';
else if(empty($pwdAnswer)){
$error_message = 'The password answer should\'t be empty.';
}else{
$isReturn = $objUser->add($arrOperate, $strGroupID, $strName, $strPassword1, $FirstName, $MiddleName, $LastName, $address, $zipcode, $telephone, $mobile, $fax, $email, $url, $pwdQuestion, md5($pwdAnswer), $strStatus);
if($isReturn)
$error_message = 'add user successfully.';
else
$error_message = 'add user fail.';
}
}
$arrUserGroup = $objUserGroup->arrGetGroupList($gid);
if(is_array($arrUserGroup) && count($arrUserGroup) > 0){
if(empty($userGroupID))
$userGroupID = key($arrUserGroup);
}
$arrStatus = array('normal' => 'Normal', 'stop' => 'Stop');
/*----- out html -----*/
$smarty = new Smarty(); //----- out template
$smarty->template_dir = TEMPLATE_SYS_DIR;
$smarty->compile_dir = CACHE_SYS_DIR;
$smarty->assign('menuGid', $menuGid);
$smarty->assign('menuid', $menuid);
$smarty->assign('backurl',$backurl);
$smarty->assign('error_message', $error_message);
$smarty->assign('arrUserGroup', $arrUserGroup);
$smarty->assign('groupidS', $strGroupID);
$smarty->assign('name', $strName);
$smarty->assign('password1', $strPassword1);
$smarty->assign('password2', $strPassword2);
$smarty->assign('arrStatus', $arrStatus);
$smarty->assign('StatusS', $strStatus);
$smarty->assign('FirstName', $FirstName);
$smarty->assign('MiddleName', $MiddleName);
$smarty->assign('LastName', $LastName);
$smarty->assign('address', $address);
$smarty->assign('zipcode', $zipcode);
$smarty->assign('telephone', $telephone);
$smarty->assign('mobile', $mobile);
$smarty->assign('fax', $fax);
$smarty->assign('email', $email);
$smarty->assign('url', $url);
$smarty->assign('pwdQuestion', $pwdQuestion);
$smarty->assign('pwdAnswer', $pwdAnswer);
$smarty->display('listUser_Add.htm');
?>
| 123gohelmetsv2 | trunk/admin/system/listUser_Add.php | PHP | asf20 | 4,353 |
<?php
include_once("../configure/admin.config.inc.php");//--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Operation.php"); //--> Operation
include_once("Users.php"); //--> Users
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation($objSession->getLanguage()); //--> Operation instance
$objUsers = new Users($uid); //--> Users
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(isset($_GET['id']) && !empty($_GET['id'])){
$id = $_GET['id'];
if($uid == $id){
$error_message = "can't delete self.";
}else{
$isReturn = $objUsers->delete($arrOperate, $id);
if($isReturn)
$error_message = 'delete successfully.';
else
$error_message = 'delete failure.';
}
}
echo "<script language='javascript'>";
echo "alert(\"$error_message\");";
echo "location.href=\"".$_SERVER['HTTP_REFERER']."\";";
echo "</script>";
//$backurl = $_SERVER['HTTP_REFERER'];
//header("Location: $backurl");
?>
| 123gohelmetsv2 | trunk/admin/system/listUser_Delete.php | PHP | asf20 | 1,031 |
<?php
include_once("../configure/admin.config.inc.php"); //--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Smarty.class.php"); //--> out template
include_once("Operation.php"); //--> Operation
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation($objSession->getLanguage()); //--> Operation
$error_message = '';
$name = '';
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(isset($_POST['Submit'])){
$name = $_POST['name'];
if(!empty($name)){
$isReturn = $objOperate->add($arrOperate, $name);
if($isReturn)
$error_message = 'add successfully.';
else
$error_message = 'add failure.';
}else{
$error_message = 'The name should\'t be empty.';
}
}
/*----- out html -----*/
$smarty = new Smarty(); //----- out template
$smarty->template_dir = TEMPLATE_SYS_DIR;
$smarty->compile_dir = CACHE_SYS_DIR;
$smarty->assign('menuGid', $menuGid);
$smarty->assign('menuid', $menuid);
$smarty->assign('backurl',$backurl);
$smarty->assign('error_message', $error_message);
$smarty->assign('name', $name);
$smarty->display('listOperation_Add.htm');
?>
| 123gohelmetsv2 | trunk/admin/system/listOperation_Add.php | PHP | asf20 | 1,188 |
<?php
include_once("../configure/admin.config.inc.php"); //--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Smarty.class.php"); //--> out template
include_once("Operation.php"); //--> Operation
include_once("Users.php"); //--> user
include_once("UserGroup.php"); //--> User Group
include_once("Validation.php"); //--> Validation
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation($objSession->getLanguage(), $uid); //--> Operation
$objUser = new Users($uid); //--> user
$objUserGroup = new UserGroup($objSession->getLanguage(), $uid); //--> User Group
$objValidation = new Validation(); //--> Validation
$error_message = '';
$strPassword1 = "";
$strPassword2 = "";
$strStatus = '';
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(!empty($id)){
$arrData = $objUser->getFromID($arrOperate, $id);
$strGroupID = $arrData['groupid'];
$strName = $arrData['name'];
$FirstName = $arrData['FirstName'];
$MiddleName = $arrData['MiddleName'];
$LastName = $arrData['LastName'];
$address = $arrData['address'];
$zipcode = $arrData['zipcode'];
$telephone = $arrData['telephone'];
$mobile = $arrData['mobile'];
$fax = $arrData['fax'];
$email = $arrData['email'];
$url = $arrData['url'];
$pwdQuestion = $arrData['pwdQuestion'];
$pwdAnswerOld = $arrData['pwdAnswer'];
$strStatus = $arrData['status'];
}
if(isset($_POST['Submit'])){
$strGroupID = $_POST['groupid'];
$strPassword1 = $_POST['password1'];
$strPassword2 = $_POST['password2'];
$FirstName = $_POST['FirstName'];
$MiddleName = $_POST['MiddleName'];
$LastName = $_POST['LastName'];
$address = $_POST['address'];
$zipcode = $_POST['zipcode'];
$telephone = $_POST['telephone'];
$mobile = $_POST['mobile'];
$fax = $_POST['fax'];
$email = $_POST['email'];
$url = $_POST['url'];
$pwdQuestion = $_POST['pwdQuestion'];
$pwdAnswer = $_POST['pwdAnswer'];
$strStatus = $_POST['status'];
if(empty($pwdAnswer))
$pwdAnswer = $pwdAnswerOld;
else
$pwdAnswer = md5($pwdAnswer);
if(empty($strGroupID))
$error_message = 'The group ID should\'t be empty.';
else if(empty($strName))
$error_message = 'The user name should\'t be empty.';
else if(empty($strPassword1))
$error_message = 'The password should\'t be empty.';
else if(empty($strPassword2))
$error_message = 'The reset password should\'t be empty.';
else if($strPassword1 != $strPassword2)
$error_message = 'the two password is not different.';
else if(!$objValidation->isEmail($email, "empty"))
$error_message = 'The email should\'t be empty or invalid.';
else if(empty($pwdQuestion))
$error_message = 'The password question should\'t be empty.';
else if(empty($pwdAnswer)){
$error_message = 'The password answer should\'t be empty.';
}else{
$isReturn = $objUser->edit($arrOperate, $id, $strGroupID, $strName, $strPassword1, $FirstName, $MiddleName, $LastName, $address, $zipcode, $telephone, $mobile, $fax, $email, $url, $pwdQuestion, $pwdAnswer, $strStatus);
if($isReturn)
$error_message = 'edit successfully.';
else
$error_message = 'edit failure.';
}
}
$arrUserGroup = $objUserGroup->arrGetGroupList($gid);
if(is_array($arrUserGroup) && count($arrUserGroup) > 0){
if(empty($userGroupID))
$userGroupID = key($arrUserGroup);
}
$arrStatus = array('normal' => 'Normal', 'stop' => 'Stop');
/*----- out html -----*/
$smarty = new Smarty(); //----- out template
$smarty->template_dir = TEMPLATE_SYS_DIR;
$smarty->compile_dir = CACHE_SYS_DIR;
$smarty->assign('menuGid', $menuGid);
$smarty->assign('menuid', $menuid);
$smarty->assign('backurl',$backurl);
$smarty->assign('error_message', $error_message);
$smarty->assign('arrUserGroup', $arrUserGroup);
$smarty->assign('groupidS', $strGroupID);
$smarty->assign('name', $strName);
$smarty->assign('password1', $strPassword1);
$smarty->assign('password2', $strPassword2);
$smarty->assign('arrStatus', $arrStatus);
$smarty->assign('StatusS', $strStatus);
$smarty->assign('FirstName', $FirstName);
$smarty->assign('MiddleName', $MiddleName);
$smarty->assign('LastName', $LastName);
$smarty->assign('address', $address);
$smarty->assign('zipcode', $zipcode);
$smarty->assign('telephone', $telephone);
$smarty->assign('mobile', $mobile);
$smarty->assign('fax', $fax);
$smarty->assign('email', $email);
$smarty->assign('url', $url);
$smarty->assign('pwdQuestion', $pwdQuestion);
$smarty->assign('pwdAnswer', $pwdAnswer);
$smarty->display('listUser_Edit.htm');
?>
| 123gohelmetsv2 | trunk/admin/system/listUser_Edit.php | PHP | asf20 | 4,604 |
<?php
include_once("../configs/admin.config.inc.php");//--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Operation.php"); //--> Operation
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation($objSession->getLanguage()); //--> Operation instance
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(isset($_GET['id']) && !empty($_GET['id'])){
$id = $_GET['id'];
$isReturn = $objOperate->delete($arrOperate, $id);
if($isReturn)
$error_message = 'delete successfully.';
else
$error_message = 'delete fail.';
}
echo "<script language='javascript'>";
echo "alert(\"$error_message\");";
echo "location.href=\"".$_SERVER['HTTP_REFERER']."\";";
echo "</script>";
//$backurl = $_SERVER['HTTP_REFERER'];
//header("Location: $backurl");
?>
| 123gohelmetsv2 | trunk/admin/system/listOperation_Delete.php | PHP | asf20 | 863 |
<?php
include_once("../configure/admin.config.inc.php"); //--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Smarty.class.php"); //--> out template
include_once("Operation.php"); //--> Operation
include_once("UserGroup.php"); //--> User Group
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation($objSession->getLanguage()); //--> Operation instance
$objUserGroup = new UserGroup($objSession->getLanguage(), $uid); //--> User Group
$error_message = '';
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(!empty($id)){
$arrGroupInfo = $objUserGroup->getFromID($arrOperate, $id);
$name = $arrGroupInfo['name'];
}
if(isset($_POST['Submit'])){
$name = $_POST['name'];
$namecn = '';
if(empty($name)){
$error_message = 'The user group name should\'t be empty.';
}
if(empty($error_message)){
$isReturn = $objUserGroup->edit($arrOperate, $id, $name);
if($isReturn)
$error_message = 'edit group successfully.';
else
$error_message = 'edit group fail.';
}
}
/*----- out html -----*/
$smarty = new Smarty(); //----- out template
$smarty->template_dir = TEMPLATE_SYS_DIR;
$smarty->compile_dir = CACHE_SYS_DIR;
$smarty->assign('menuGid', $menuGid);
$smarty->assign('menuid', $menuid);
$smarty->assign('id', $id);
$smarty->assign('backurl',$backurl);
$smarty->assign('error_message', $error_message);
$smarty->assign('name', $name);
$smarty->display('listUserGroup_Edit.htm');
?>
| 123gohelmetsv2 | trunk/admin/system/listUserGroup_Edit.php | PHP | asf20 | 1,535 |
<?php
include_once("../configure/admin.config.inc.php"); //--> admin global var
include_once("db.inc.php"); //--> db global var
include_once("Smarty.class.php"); //--> out template
include_once("Users.php"); //--> User
include_once("UserGroup.php"); //--> User Group
include_once("Operation.php"); //--> Operation
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation($objSession->getLanguage(), $uid); //--> Operation
$objUser = new Users($uid); //--> user
$objUserGroup = new UserGroup($objSession->getLanguage(), $uid); //--> User Group
if(isset($_GET['groupID']))
$userGroupID = $_GET['groupID'];
else
$userGroupID = 0;
$error_message = '';
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(count($arrOperate) > 0){
$strQuery = $_SERVER["REQUEST_URI"];
$arrUrlInfo = pathinfo($strQuery);
$selfFileName = $arrUrlInfo['filename'];
$arrOperateAllInfo = $objOperate->listFromCustom($arrOperate, " WHERE id in (".implode(",", $arrOperate).")");
$i = 0;
foreach($arrOperateAllInfo as $key => $value){
$strFileName = $selfFileName."_".$value['name'].".php";
if(file_exists($strFileName)){
$arrOperateInfo[$i]['name'] = $value['name'];
$arrOperateInfo[$i]['viewName'] = $value['name'];
$i++;
}
}
}
$arrUserGroup = $objUserGroup->arrGetGroupList($gid);
if(is_array($arrUserGroup) && count($arrUserGroup) > 0){
if(empty($userGroupID))
$userGroupID = key($arrUserGroup);
}
$arrUserList = $objUser->lists($arrOperate, " WHERE groupid=$userGroupID ORDER BY id DESC", $page, DISPLAY_DATA_SIZE, '');
foreach ($arrUserList as $key => $value){
$arrGroupInfo = $objUserGroup->getFromID($arrOperate, $value['groupid']);
if($objSession->getLanguage() == "zh-CN"){
$arrUserList[$key]['gname'] = $arrGroupInfo['namecn'];
}else
$arrUserList[$key]['gname'] = $arrGroupInfo['name'];
}
/*----- out html -----*/
$smarty = new Smarty(); //----- out template
$smarty->template_dir = TEMPLATE_SYS_DIR;
$smarty->compile_dir = CACHE_SYS_DIR;
$smarty->assign('error_message', $error_message);
$smarty->assign('menuGid', $menuGid);
$smarty->assign('menuid', $menuid);
$smarty->assign('selfFileName', $selfFileName);
$smarty->assign('arrOperateInfo', $arrOperateInfo);
$smarty->assign('arrUserGroup', $arrUserGroup);
$smarty->assign('arrUserList', $arrUserList);
$smarty->assign('groupidS', $userGroupID);
$smarty->assign('PAGE_BAR', $objUser->pagenav);
$smarty->display('listUser.htm');
?>
| 123gohelmetsv2 | trunk/admin/system/listUser.php | PHP | asf20 | 2,568 |
<?php
include_once("../configure/admin.config.inc.php");//--> admin global var
include_once("account.inc.php"); //--> account var
include_once("db.inc.php"); //--> db global var
include_once("Operation.php"); //--> Operation
include_once("Users.php"); //--> Users
include_once("Account.php"); //--> Account
include_once("AccountLog.php"); //--> AccountLog
require_once("controlHeader.php"); //--> system control header
$objOperate = new Operation($objSession->getLanguage()); //--> Operation instance
$objUsers = new Users($uid); //--> Users
$objAccount = new Account($uid); //--> Account
$objAccountLog = new AccountLog($uid); //--> AccountLog
$arrOperate = $objOperate->arrGetFromGroupIDAndMenuID($gid, $menuid);
if(isset($_GET['id']) && !empty($_GET['id'])){
$id = $_GET['id'];
$isReturn = $objUsers->editStatus($arrOperate, $id, "normal");
if($isReturn){
$error_message = 'Live successfully.';
//$amount = $objAccountLog->fetchSumCounting($arrOperate, SOURCE_USER, $id);
//echo 'a='.$amount;
$amount = $objAccountLog->isExistOperate($arrOperate, $id, SOURCE_USER, $id, SOURCE_TYPE_ADD);
if($amount <= 0)
$objAccount->addAccounting($arrOperate, DEFAULT_LAN, $uid, $id, DEFAULT_USER_ADD_BALANCE, SOURCE_USER, $id, SOURCE_TYPE_ADD, $_SERVER['REMOTE_ADDR']);
}else
$error_message = 'Live failure.';
}
echo "<script language='javascript'>";
echo "alert(\"$error_message\");";
echo "location.href=\"".$_SERVER['HTTP_REFERER']."\";";
echo "</script>";
//$backurl = $_SERVER['HTTP_REFERER'];
//header("Location: $backurl");
?>
| 123gohelmetsv2 | trunk/admin/system/listProduct_Live.php | PHP | asf20 | 1,620 |