ZenCart_Documentation  1.5.0
http://www.collinsharper.com
C:/xampp/htdocs/zen-cart/admin/attributes_controller.php File Reference

Go to the source code of this file.

Namespaces

namespace  admin

Functions

while(!$products_options_type_array->
EOF) 
draw_optiontype_pulldown ($name, $default= '')
 translate_type_to_name ($opt_type)
 zen_js_option_values_list ($selectedName, $fieldName)

Variables

 $show_name_numbers = true
 $show_value_numbers = true
 $chk_option_names = $db->Execute("select * from " . TABLE_PRODUCTS_OPTIONS . " where language_id='" . (int)$_SESSION['languages_id'] . "' limit 1")
if($chk_option_names->
RecordCount()< 1) 
$chk_option_values = $db->Execute("select * from " . TABLE_PRODUCTS_OPTIONS_VALUES . " where language_id='" . (int)$_SESSION['languages_id'] . "' limit 1")
if($chk_option_values->
RecordCount()< 1) 
$chk_products = $db->Execute("select * from " . TABLE_PRODUCTS . " limit 1")
 if ($chk_products->RecordCount()< 1)
 $currencies = new currencies()
 $languages = zen_get_languages()
 $action = (isset($_GET['action']) ? $_GET['action'] : '')
 $_GET ['products_filter'] = $products_filter = (isset($_GET['products_filter']) ? (int)$_GET['products_filter'] : (int)$products_filter)
 $_GET ['attributes_id'] = (isset($_GET['attributes_id']) ? (int)$_GET['attributes_id'] : 0)
 $_GET ['current_category_id'] = $current_category_id = (isset($_GET['current_category_id']) ? (int)$_GET['current_category_id'] : (int)$current_category_id)
if(zen_not_null($action)) $products_options_types_list = array()
 $products_options_type_array = $db->Execute("select products_options_types_id, products_options_types_name from " . TABLE_PRODUCTS_OPTIONS_TYPES . " order by products_options_types_id")
 if (isset($_GET['search'])&&zen_not_null($_GET['search']))
 $per_page = (defined('MAX_ROW_LISTS_ATTRIBUTES_CONTROLLER') && (int)MAX_ROW_LISTS_ATTRIBUTES_CONTROLLER > 3) ? (int)MAX_ROW_LISTS_ATTRIBUTES_CONTROLLER : 40
 $attributes
 $attribute_query = $db->Execute($attributes)
 $attribute_page_start = ($per_page * $_GET['attribute_page']) - $per_page
 $num_rows = $attribute_query->RecordCount()
if($prev_attribute_page) for($i=1;$i
<=$num_pages;$i++) 
if ($_GET['attribute_page']!=$num_pages)
< tdclass="dataTableHeadingContent"> & nbsp
 $next_id = 1
 $attributes_values = $db->Execute($attributes)

Function Documentation

while (!$products_options_type_array->EOF) draw_optiontype_pulldown ( name,
default = '' 
)

Definition at line 594 of file attributes_controller.php.

translate_type_to_name ( opt_type)

Definition at line 606 of file attributes_controller.php.

zen_js_option_values_list ( selectedName,
fieldName 
)

Definition at line 611 of file attributes_controller.php.


Variable Documentation

$_GET['products_filter'] = $products_filter = (isset($_GET['products_filter']) ? (int)$_GET['products_filter'] : (int)$products_filter)

Definition at line 37 of file attributes_controller.php.

$_GET['attributes_id'] = (isset($_GET['attributes_id']) ? (int)$_GET['attributes_id'] : 0)

Definition at line 38 of file attributes_controller.php.

$_GET['current_category_id'] = $current_category_id = (isset($_GET['current_category_id']) ? (int)$_GET['current_category_id'] : (int)$current_category_id)

Definition at line 40 of file attributes_controller.php.

$action = (isset($_GET['action']) ? $_GET['action'] : '')

Definition at line 35 of file attributes_controller.php.

$attribute_page_start = ($per_page * $_GET['attribute_page']) - $per_page

Definition at line 1120 of file attributes_controller.php.

$attribute_query = $db->Execute($attributes)

Definition at line 1118 of file attributes_controller.php.

if ($attribute_page_start< 0) $attributes
Initial value:
"'
  order by pd.products_name, LPAD(po.products_options_sort_order,11,'0'), LPAD(pa.options_id,11,'0'), LPAD(pa.products_options_sort_order,11,'0')"

Definition at line 1108 of file attributes_controller.php.

$attributes_values = $db->Execute($attributes)

Definition at line 1178 of file attributes_controller.php.

$chk_option_names = $db->Execute("select * from " . TABLE_PRODUCTS_OPTIONS . " where language_id='" . (int)$_SESSION['languages_id'] . "' limit 1")

Definition at line 14 of file attributes_controller.php.

if ($chk_option_names->RecordCount()< 1) $chk_option_values = $db->Execute("select * from " . TABLE_PRODUCTS_OPTIONS_VALUES . " where language_id='" . (int)$_SESSION['languages_id'] . "' limit 1")

Definition at line 19 of file attributes_controller.php.

if ($chk_option_values->RecordCount()< 1) $chk_products = $db->Execute("select * from " . TABLE_PRODUCTS . " limit 1")

Definition at line 24 of file attributes_controller.php.

Definition at line 31 of file attributes_controller.php.

$languages = zen_get_languages()

Definition at line 33 of file attributes_controller.php.

$next_id = 1

Definition at line 1177 of file attributes_controller.php.

$num_rows = $attribute_query->RecordCount()

Definition at line 1121 of file attributes_controller.php.

$per_page = (defined('MAX_ROW_LISTS_ATTRIBUTES_CONTROLLER') && (int)MAX_ROW_LISTS_ATTRIBUTES_CONTROLLER > 3) ? (int)MAX_ROW_LISTS_ATTRIBUTES_CONTROLLER : 40

Definition at line 1107 of file attributes_controller.php.

$products_options_type_array = $db->Execute("select products_options_types_id, products_options_types_name from " . TABLE_PRODUCTS_OPTIONS_TYPES . " order by products_options_types_id")

Definition at line 585 of file attributes_controller.php.

if (zen_not_null($action)) $products_options_types_list = array()

Definition at line 583 of file attributes_controller.php.

$show_name_numbers = true

Definition at line 11 of file attributes_controller.php.

$show_value_numbers = true

Definition at line 12 of file attributes_controller.php.

while (!$attributes_values->EOF) if(($action!= 'update_attribute'and $action!= 'delete_product_attribute'))

Definition at line 25 of file attributes_controller.php.

if(isset($_GET['search'])&&zen_not_null($_GET['search']))

Definition at line 709 of file attributes_controller.php.

if ($prev_attribute_page) for ($i=1;$i<=$num_pages;$i++) if($_GET['attribute_page']!=$num_pages)

Definition at line 1151 of file attributes_controller.php.

<tdclass="dataTableHeadingContent"> & nbsp

Definition at line 1161 of file attributes_controller.php.

 All Data Structures Namespaces Files Functions Variables Enumerations