<?php
/* --------------------------------------------------------------
GMGPrintOrderElements.php 2009-11-30 mb
Gambio GmbH
http://www.gambio.de
Copyright (c) 2009 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
*/
?><?php
class GMGPrintOrderElements
{
var $v_width = 0;
var $v_height = 0;
var $v_position_x = 0;
var $v_position_y = 0;
var $v_z_index = 0;
var $v_show_name = false;
var $v_type = '';
var $v_name = '';
var $v_value = '';
var $v_uploads_id = 0;
var $v_download_key = 0;
var $v_elements_id;
function GMGPrintOrderElements($p_elements_id)
{
$this->v_elements_id = $p_elements_id;
}
function set_size($p_width, $p_height)
{
$c_width = (int)$p_width;
$c_height = (int)$p_height;
$t_success = false;
if($this->get_elements_id() > 0 && $c_width > 0 && $c_height > 0)
{
$c_elements_id = (int)$this->get_elements_id();
$t_update_element = xtc_db_query("UPDATE " . TABLE_GM_GPRINT_ORDERS_ELEMENTS . "
SET width = '" . $c_width . "',
height = '" . $c_height . "'
WHERE gm_gprint_orders_elements_id = '" . $c_elements_id . "'");
$t_success = 'true';
$this->set_width($c_width);
$this->set_height($c_height);
}
return $t_success;
}
function set_width($p_width)
{
$this->v_width = $p_width;
}
function set_height($p_height)
{
$this->v_height = $p_height;
}
function set_position($p_position_x, $p_position_y)
{
$c_position_x = (int)$p_position_x;
$c_position_y = (int)$p_position_y;
$t_success = false;
if($this->get_elements_id() > 0)
{
$c_elements_id = (int)$this->get_elements_id();
$t_update_element = xtc_db_query("UPDATE " . TABLE_GM_GPRINT_ORDERS_ELEMENTS . "
SET position_x = '" . $c_position_x . "',
position_y = '" . $c_position_y . "'
WHERE gm_gprint_orders_elements_id = '" . $c_elements_id . "'");
$this->set_position_x($c_position_x);
$this->set_position_y($c_position_y);
$t_success = 'true';
}
return $t_success;
}
function set_position_x($p_position_x)
{
$this->v_position_x = $p_position_x;
}
function set_position_y($p_position_y)
{
$this->v_position_y = $p_position_y;
}
function set_element_z_index($p_z_index)
{
$c_z_index = (int)$p_z_index;
$c_elements_id = (int)$this->get_elements_id();
$t_success = false;
if($c_elements_id > 0)
{
$t_update_element = xtc_db_query("UPDATE " . TABLE_GM_GPRINT_ORDERS_ELEMENTS . "
SET z_index = '" . $c_z_index. "'
WHERE gm_gprint_orders_elements_id = '" . $c_elements_id . "'");
$this->set_z_index($c_z_index);
$t_success = 'true';
}
return $t_success;
}
function set_element_show_name($p_show_name)
{
$c_show_name = (int)$p_show_name;
$c_elements_id = (int)$this->get_elements_id();
$t_success = false;
if($c_elements_id > 0)
{
$t_update_element = xtc_db_query("UPDATE " . TABLE_GM_GPRINT_ORDERS_ELEMENTS . "
SET show_name = '" . $c_show_name. "'
WHERE gm_gprint_orders_elements_id = '" . $c_elements_id . "'");
$this->set_show_name($c_show_name);
$t_success = 'true';
}
return $t_success;
}
function set_element_type($p_type)
{
$c_type = mysql_real_escape_string(stripslashes($p_type));
$t_success = false;
if($this->get_elements_id() > 0)
{
$c_elements_id = (int)$this->get_elements_id();
$t_update_element = xtc_db_query("UPDATE " . TABLE_GM_GPRINT_ORDERS_ELEMENTS . "
SET group_type = '" . $c_type. "'
WHERE gm_gprint_orders_elements_id = '" . $this->get_elements_id() . "'");
$this->set_type($c_type);
$t_success = 'true';
}
return $t_success;
}
function set_z_index($p_z_index)
{
$this->v_z_index = $p_z_index;
}
function set_show_name($p_show_name)
{
if($p_show_name === '1' || $p_show_name === 'true' || $p_show_name === 1 || $p_show_name === true)
{
$this->v_show_name = true;
}
else
{
$this->v_show_name = false;
}
}
function set_element_name($p_name)
{
$c_name = mysql_real_escape_string(stripslashes($p_name));
$t_success = false;
if($this->get_elements_id() > 0)
{
$c_elements_id = (int)$this->get_elements_id();
$t_update_element = xtc_db_query("UPDATE " . TABLE_GM_GPRINT_ORDERS_ELEMENTS . "
SET name = '" . $c_name. "'
WHERE gm_gprint_orders_elements_id = '" . $c_elements_id . "'");
$this->set_name($c_name);
$t_success = 'true';
}
return $t_success;
}
function set_element_value($p_value)
{
$c_value = mysql_real_escape_string(stripslashes($p_value));
$t_success = false;
if($this->get_elements_id() > 0)
{
$c_elements_id = (int)$this->get_elements_id();
$t_update_element = xtc_db_query("UPDATE " . TABLE_GM_GPRINT_ORDERS_ELEMENTS . "
SET elements_value = '" . $c_value. "'
WHERE gm_gprint_orders_elements_id = '" . $c_elements_id . "'");
$this->set_value($c_value);
$t_success = 'true';
}
return $t_success;
}
function get_elements_id()
{
return $this->v_elements_id;
}
function set_type($p_type)
{
$this->v_type = $p_type;
}
function set_name($p_name)
{
$this->v_name = $p_name;
}
function set_value($p_value)
{
$this->v_value = $p_value;
}
function set_elements_uploads_id($p_uploads_id)
{
$c_uploads_id = (int)$p_uploads_id;
$t_success = false;
if($this->get_elements_id() > 0)
{
$c_elements_id = (int)$this->get_elements_id();
$t_update_element = xtc_db_query("UPDATE " . TABLE_GM_GPRINT_ORDERS_ELEMENTS . "
SET gm_gprint_uploads_id = '" . $c_uploads_id. "'
WHERE gm_gprint_orders_elements_id = '" . $c_elements_id . "'");
$this->set_uploads_id($c_uploads_id);
$t_success = 'true';
}
return $t_success;
}
function set_uploads_id($p_uploads_id)
{
$this->v_uploads_id = $p_uploads_id;
}
function get_uploads_id()
{
return $this->v_uploads_id;
}
function set_download_key($p_download_key)
{
$this->v_download_key = $p_download_key;
}
function get_download_key()
{
return $this->v_download_key;
}
function get_image_data($p_filename)
{
$t_image_size = array();
$t_image_data = array();
$c_filename = basename($p_filename);
$t_image_size = getimagesize(DIR_FS_CATALOG . DIR_WS_IMAGES . 'gm/gprint/' . $c_filename);
$t_image_data['WIDTH'] = $t_image_size[0];
$t_image_data['HEIGHT'] = $t_image_size[1];
$t_image_data['FILENAME'] = $c_filename;
return $t_image_data;
}
function get_width()
{
return $this->v_width;
}
function get_height()
{
return $this->v_height;
}
function get_position_x()
{
return $this->v_position_x;
}
function get_position_y()
{
return $this->v_position_y;
}
function get_z_index()
{
return $this->v_z_index;
}
function get_show_name()
{
return $this->v_show_name;
}
function get_type()
{
return $this->v_type;
}
function get_name()
{
return $this->v_name;
}
function get_value()
{
return $this->v_value;
}
}
?>| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| csstidy/ | 2013-11-12 21:03 | 125.89 KB | 76129f60960:kunden | dxwrx-rx-r | |
| lib/ | 2013-11-12 21:03 | 601.96 KB | 76129f60960:kunden | dxwrx-rx-r | |
| ErrorHandler.php | 2013-11-12 21:03 | 10.34 KB | 76129f60960:kunden | -xw-x----- | |
| FileLog.php | 2013-11-12 21:02 | 2.93 KB | 76129f60960:kunden | -xw-x----- | |
| GMAltText.php | 2013-11-12 21:03 | 2.94 KB | 76129f60960:kunden | -xw-x----- | |
| GMAttributesCalculator.php | 2013-11-12 21:03 | 4.65 KB | 76129f60960:kunden | -xw-x----- | |
| GMCSSMonitor.php | 2013-11-12 21:03 | 13.19 KB | 76129f60960:kunden | -xw-x----- | |
| GMCSSOptimizer.php | 2013-11-12 21:03 | 32.87 KB | 76129f60960:kunden | -xw-x----- | |
| GMCat.php | 2013-11-12 21:03 | 9.08 KB | 76129f60960:kunden | -xw-x----- | |
| GMCounter.php | 2013-11-12 21:03 | 17.05 KB | 76129f60960:kunden | -xw-x----- | |
| GMEbay.php | 2013-11-12 21:02 | 9.16 KB | 76129f60960:kunden | -xw-x----- | |
| GMGMotion.php | 2013-11-12 21:02 | 24.31 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintCartManager.php | 2013-11-12 21:03 | 14.66 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintConfiguration.php | 2013-11-12 21:03 | 2.17 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintContentManager.php | 2013-11-12 21:02 | 8.79 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintElements.php | 2013-11-12 21:03 | 15.79 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintFileManager.php | 2013-11-12 21:02 | 6.06 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintOrderElements.php | 2013-11-12 21:03 | 7.46 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintOrderManager.php | 2013-11-12 21:03 | 6.27 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintOrderSurfaces.php | 2013-11-12 21:03 | 6.41 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintOrderSurfacesManager.php | 2013-11-12 21:03 | 4.86 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintProductManager.php | 2013-11-12 21:02 | 4.55 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintSurfaces.php | 2013-11-12 21:03 | 9.99 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintSurfacesGroupsManager.php | 2013-11-12 21:03 | 1.96 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintSurfacesManager.php | 2013-11-12 21:03 | 9.62 KB | 76129f60960:kunden | -xw-x----- | |
| GMGPrintWishlistManager.php | 2013-11-12 21:03 | 14.81 KB | 76129f60960:kunden | -xw-x----- | |
| GMJSON.php | 2013-11-12 21:03 | 2.44 KB | 76129f60960:kunden | -xw-x----- | |
| GMJanolaw.php | 2013-11-12 21:03 | 3.76 KB | 76129f60960:kunden | -xw-x----- | |
| GMLangFileMaster.php | 2013-11-12 21:03 | 965 B | 76129f60960:kunden | -xw-x----- | |
| GMLightboxControl.php | 2013-11-12 21:03 | 691 B | 76129f60960:kunden | -xw-x----- | |
| GMLogoManager.php | 2013-11-12 21:03 | 6.78 KB | 76129f60960:kunden | -xw-x----- | |
| GMMeta.php | 2013-11-12 21:02 | 8.29 KB | 76129f60960:kunden | -xw-x----- | |
| GMProduct.php | 2013-11-12 21:03 | 2.37 KB | 76129f60960:kunden | -xw-x----- | |
| GMSEOBoost.php | 2013-11-12 21:03 | 25.63 KB | 76129f60960:kunden | -xw-x----- | |
| GMSitemap.php | 2013-11-12 21:03 | 5.32 KB | 76129f60960:kunden | -xw-x----- | |
| GMStatusbar.php | 2013-11-12 21:02 | 2.46 KB | 76129f60960:kunden | -xw-x----- | |
| GMTSWidget.php | 2013-11-12 21:03 | 4.93 KB | 76129f60960:kunden | -xw-x----- | |
| GMTabTokenizer.php | 2013-11-12 21:03 | 2.81 KB | 76129f60960:kunden | -xw-x----- | |
| GMTracker.php | 2013-11-12 21:03 | 3.49 KB | 76129f60960:kunden | -xw-x----- | |
| JSON.php | 2013-11-12 21:03 | 39.98 KB | 76129f60960:kunden | -xw-x----- | |
| application_top.php | 2013-11-12 21:03 | 34.02 KB | 76129f60960:kunden | -xw-x----- | |