關於部落格
「 相本、程式....Not worth a rap 。」
  • 16696

    累積人氣

  • 0

    今日人氣

    0

    訂閱人氣

後台更改

137行開始
 <!--18禁
      <tr>
        <td><span class="main"><?php echo TEXT_FSK18; ?></span></td>
        <td><span class="main"><?php echo twe_draw_pull_down_menu('fsk18', $fsk18_array, $pInfo->products_fsk18); ?></span></td>
      </tr>
      -->
      <!-- 商品明細
      <tr>
<?php if (ACTIVATE_SHIPPING_STATUS=='true') { ?>
        <td><span class="main"><?php echo BOX_SHIPPING_STATUS.':'; ?></span></td>
        <td><span class="main"><?php echo twe_draw_pull_down_menu('shipping_status', $shipping_statuses, $pInfo->products_shippingtime); ?></span></td>
      </tr>
      -->
<?php } ?>
      <!--
      <tr>
          <?php
        $files=array();
 if ($dir= opendir(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_info/')){
 while  (($file = readdir($dir)) !==false) {
        if (is_file( DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_info/'.$file) and ($file !="index.html")){
        $files[]=array(
                        'id' => $file,
                        'text' => $file);
        }//if
        } // while
        closedir($dir);
 }
 $default_array=array();
 // set default value in dropdown!
if ($content['content_file']=='') {
$default_array[]=array('id' => 'default','text' => TEXT_SELECT);
$default_value=$pInfo->product_template;
$files=array_merge($default_array,$files);
} else {
$default_array[]=array('id' => 'default','text' => TEXT_NO_FILE);
$default_value=$pInfo->product_template;
$files=array_merge($default_array,$files);
}
echo '<td class="main">'.TEXT_CHOOSE_INFO_TEMPLATE.':</td>';
echo '<td><span class="main">'.twe_draw_pull_down_menu('product_template',$files,$default_value);
?>
        </span></td>
      </tr>
      -->
     
      <!-- 商品屬性列表
      <tr>
          <?php
        $files=array();
 if ($dir= opendir(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_options/')){
 while  (($file = readdir($dir)) !==false) {
        if (is_file( DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_options/'.$file) and ($file !="index.html")){
        $files[]=array(
                        'id' => $file,
                        'text' => $file);
        }//if
        } // while
        closedir($dir);
 }
 // set default value in dropdown!
 $default_array=array();
if ($content['content_file']=='') {
$default_array[]=array('id' => 'default','text' => TEXT_SELECT);
$default_value=$pInfo->options_template;
$files=array_merge($default_array,$files);
} else {
$default_array[]=array('id' => 'default','text' => TEXT_NO_FILE);
$default_value=$pInfo->options_template;
$files=array_merge($default_array,$files);
}
echo '<td class="main">'.TEXT_CHOOSE_OPTIONS_TEMPLATE.':'.'</td>';
echo '<td><span class="main">'.twe_draw_pull_down_menu('options_template',$files,$default_value);
?>
        </span></td>
      </tr>
      -->
158行簡短說明及右邊的三個meta(標頭、說明、關鍵字)
<tr>
    <td class="main" width="60%" rowspan="2" valign="top"><b><?php echo TEXT_PRODUCTS_SHORT_DESCRIPTION; ?></b><br>
      <?php echo twe_draw_textarea_field('products_short_description_' . $languages[$i]['id'], 'soft', '100', '25', (($products_short_description[$languages[$i]['id']]) ? stripslashes($products_short_description[$languages[$i]['id']]) : twe_get_products_short_description($pInfo->products_id, $languages[$i]['id']))); ?></td>
    <td class="main"><?php echo TEXT_META_TITLE; ?><br>
      <?php echo twe_draw_textarea_field('products_meta_title[' . $languages[$i]['id'] . ']', 'soft', '25', '1', (($products_meta_title[$languages[$i]['id']]) ? stripslashes($products_meta_title[$languages[$i]['id']]) : twe_get_products_meta_title($pInfo->products_id, $languages[$i]['id']))); ?></td>
  </tr>
  <tr>
標頭
    <td class="main"><?php echo TEXT_META_DESCRIPTION; ?><br>
說明
      <?php echo twe_draw_textarea_field('products_meta_description[' . $languages[$i]['id'] . ']', 'soft', '25', '3', (($products_meta_description[$languages[$i]['id']]) ? stripslashes($products_meta_description[$languages[$i]['id']]) : twe_get_products_meta_description($pInfo->products_id, $languages[$i]['id']))); ?><br>
關鍵字
      <?php echo TEXT_META_KEYWORDS; ?><br>
      <?php echo twe_draw_textarea_field('products_meta_keywords[' . $languages[$i]['id'] . ']', 'soft', '25', '3', (($products_meta_keywords[$languages[$i]['id']]) ? stripslashes($products_meta_keywords[$languages[$i]['id']]) : twe_get_products_meta_keywords($pInfo->products_id, $languages[$i]['id']))); ?>
    </td>
  </tr>

178行商品設定
   <!-- 數量
         <tr>
            <td class="main"><?php echo TEXT_PRODUCTS_QUANTITY; ?><br><?php echo twe_draw_input_field('products_quantity', $pInfo->products_quantity); ?></td>
          </tr>         
          <tr><td colspan="4"><?php echo twe_draw_separator('pixel_trans.gif', '1', '10'); ?></td></tr>
           -->
           <!-- 重量
          <tr>
            <td class="main"><?php echo TEXT_PRODUCTS_WEIGHT; ?><br><?php echo twe_draw_input_field('products_weight', $pInfo->products_weight); ?><?php echo TEXT_PRODUCTS_WEIGHT_INFO; ?></td>
          </tr>
        
          <tr><td colspan="4"><?php echo twe_draw_separator('pixel_trans.gif', '1', '10'); ?></td></tr>
           -->

下方的Price options(價格設定)
www/admin/includes/modules/group_prices.php
從72行開始
 <!-- Guest <tr>
            <td style="border-top: 1px solid; border-color: #cccccc;" valign="top" class="main"><?php echo $group_data[$col]['STATUS_NAME']; ?></td>
<?php
if (PRICE_IS_BRUTTO=='true'){
$products_price = twe_round(get_group_price($group_data[$col]['STATUS_ID'], $pInfo->products_id)*((100+twe_get_tax_rate($pInfo->products_tax_class_id))/100),PRICE_PRECISION);

} else {
$products_price = twe_round(get_group_price($group_data[$col]['STATUS_ID'], $pInfo->products_id),PRICE_PRECISION);
}

?>
            <td style="border-top: 1px solid; border-color: #cccccc;" class="main"><?php echo twe_draw_input_field('products_price_' . $group_data[$col]['STATUS_ID'], $products_price);

if (PRICE_IS_BRUTTO=='true' && get_group_price($group_data[$col]['STATUS_ID'], $pInfo->products_id)!='0'){
echo TEXT_NETTO . '<b>'.twe_format_price((twe_round(get_group_price($group_data[$col]['STATUS_ID'], $pInfo->products_id),PRICE_PRECISION)),1,1).'</b>  ';
}


      if ($_GET['pID'] != '') {
        echo ' ' . TXT_STAFFELPREIS; ?> <img onMouseOver="this.style.cursor='hand'" src="images/arrow_down.gif" height="12" width="12" onClick="toggleBox('staffel_<?php echo $group_data[$col]['STATUS_ID']; ?>');"><?php
      }
     
?>-->
<!-- New Custermer
<div id="staffel_<?php echo $group_data[$col]['STATUS_ID']; ?>" class="longDescription"><br><?php
      // ok, lets check if there is already a staffelpreis
      $staffel_values = $db->Execute("SELECT
                                         products_id,
                                         quantity,
                                         personal_offer
                                     FROM
                                         personal_offers_by_customers_status_" . $group_data[$col]['STATUS_ID'] . "
                                     WHERE
                                         products_id = '" . $pInfo->products_id . "' AND quantity != 1
                                     ORDER BY quantity ASC");
      echo '<table width="247" border="0" cellpadding="0" cellspacing="0">';
      while (!$staffel_values->EOF) {
      // load data into array
?>
              <tr>
                <td width="20" class="main" style="border: 1px solid; border-color: #cccccc;"><?php echo $staffel_values->fields['quantity']; ?></td>
                <td width="5">&nbsp;</td>
                <td nowrap width="142" class="main" style="border: 1px solid; border-color: #cccccc;">
<?php
if (PRICE_IS_BRUTTO=='true'){
$tax_query = "select tax_rate from " . TABLE_TAX_RATES . " where tax_class_id = '" . $pInfo->products_tax_class_id . "'";
$tax = $db->Execute($tax_query);

$products_price = twe_round($staffel_values->fields['personal_offer']*((100+$tax->fields['tax_rate'])/100),PRICE_PRECISION);

} else {
$products_price = twe_round($staffel_values->fields['personal_offer'],PRICE_PRECISION);
}
 echo $products_price;
 if (PRICE_IS_BRUTTO=='true'){
echo ' <br>'.TEXT_NETTO .'<b>'. twe_format_price((twe_round($staffel_values->fields['personal_offer'],PRICE_PRECISION)),1,1).'</b>  ';
}

 ?>
 </td>
                <td width="80" align="left"><?php echo twe_draw_separator('pixel_trans.gif', '1', '10'); ?><a href="<?php echo twe_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&function=delete&quantity=' . $staffel_values->fields['quantity'] . '&statusID=' . $group_data[$col]['STATUS_ID'] . '&action=new_product&pID=' . $_GET['pID']); ?>"><?php echo twe_image_button('button_delete.gif', IMAGE_DELETE); ?></a></td>
              </tr>
              <tr>
                <td colspan="3" height="5"></td>
              </tr>
<?php
$staffel_values->MoveNext();
      }

      echo '</table>';
      echo TXT_STK;
      echo twe_draw_small_input_field('products_quantity_staffel_'.$group_data[$col]['STATUS_ID'], 0);
      echo TXT_PRICE;
      echo twe_draw_input_field('products_price_staffel_'.$group_data[$col]['STATUS_ID'], 0);
      echo twe_draw_separator('pixel_trans.gif', '10', '10');
      echo twe_image_submit('button_insert.gif', IMAGE_INSERT);
?><br></td>
          </tr>
<?php
    }
  }
?></div>
-->
      <!-- 折扣
          <tr>
            <td style="border-top: 1px solid; border-color: #cccccc;" class="main"><?php echo TEXT_PRODUCTS_DISCOUNT_ALLOWED; ?></td>
            <td style="border-top: 1px solid; border-color: #cccccc;" class="main"><?php echo twe_draw_input_field('products_discount_allowed', $pInfo->products_discount_allowed); ?></td>
          </tr>
        -->
          <tr>
            <td colspan="2"><?php echo twe_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
          </tr>
      <!-- 稅別
          <tr>
            <td class="main"><?php echo TEXT_PRODUCTS_TAX_CLASS; ?></td>
            <td class="main"><?php echo twe_draw_pull_down_menu('products_tax_class_id', $tax_class_array, $pInfo->products_tax_class_id); ?></td>
          </tr>
         -->


左邊的選單
www/admin/includes/column_left.php


if(CONFIGURATION_NOTE == 'true')require(DIR_WS_BOXES . 'configuration.php'); //系統設定
if(CATEGORIES_NOTE == 'true')require(DIR_WS_BOXES . 'catalog.php'); //商品目錄
if(MODULES_NOTE == 'true')require(DIR_WS_BOXES . 'modules.php'); //外掛模組
if(CUSTOMERS_NOTE == 'true')require(DIR_WS_BOXES . 'customers.php'); //客戶/訂單
if(LOCALIZATION_NOTE == 'true')require(DIR_WS_BOXES . 'localization.php'); //地區/稅率
if(REPORTS_NOTE == 'true')require(DIR_WS_BOXES . 'reports.php'); //各類報表
if(TOOLS_NOTE == 'true')require(DIR_WS_BOXES . 'tools.php'); //系統工具
檔案位置:
www/admin
www/admin/includes/boxes/

最上面的logo/新聞/支援網站等等
www/admin/includes/header.php

相簿設定
標籤設定
相簿狀態