本文整理汇总了PHP中lc_draw_input_field函数的典型用法代码示例。如果您正苦于以下问题:PHP lc_draw_input_field函数的具体用法?PHP lc_draw_input_field怎么用?PHP lc_draw_input_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了lc_draw_input_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getData
public static function getData($id)
{
global $lC_Database, $lC_Language, $lC_Vqmod;
$result = array();
include $lC_Vqmod->modCheck('includes/modules/order_total/' . $id . '.php');
$lC_Language->injectDefinitions('modules/order_total/' . $id . '.xml');
$module = 'lC_OrderTotal_' . $id;
$module = new $module();
$cnt = 0;
$keys = '';
foreach ($module->getKeys() as $key) {
$Qkey = $lC_Database->query('select configuration_title, configuration_value, configuration_description, use_function, set_function from :table_configuration where configuration_key = :configuration_key');
$Qkey->bindTable(':table_configuration', TABLE_CONFIGURATION);
$Qkey->bindValue(':configuration_key', $key);
$Qkey->execute();
$keys .= '<label for="' . $Qkey->value('configuration_title') . '" class="label"><strong>' . $Qkey->value('configuration_title') . '</strong> <span class="icon-info-round icon-blue with-tooltip with-small-padding" style="cursor:pointer;" title="' . $Qkey->value('configuration_description') . '" data-tooltip-options=\'{"classes":["anthracite-gradient"]}\'></span>';
if (!lc_empty($Qkey->value('set_function'))) {
$keys .= lc_call_user_func($Qkey->value('set_function'), $Qkey->value('configuration_value'), $key);
} else {
$keys .= lc_draw_input_field('configuration[' . $key . ']', $Qkey->value('configuration_value'), 'class="input full-width"');
}
$keys .= '</label><br /><br />';
$cnt++;
}
$result['keys'] = substr($keys, 0, strrpos($keys, '<br /><br />'));
$result['totalKeys'] = $cnt;
return $result;
}
示例2: getFormData
public static function getFormData($id = null, $edit = false)
{
global $lC_Database, $lC_Language;
$result = array();
$result['titleCode'] = '';
foreach ($lC_Language->getAll() as $l) {
$result['titleCode'] .= '<span class="input" style="width:95%"><label for="title[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('title[' . $l['id'] . ']', null, 'class="input-unstyled"') . '</span><br />';
}
if (isset($id) && $id != null) {
$lC_ObjectInfo = new lC_ObjectInfo(lC_Image_groups_Admin::getData($id));
$status_name = array();
$Qgd = $lC_Database->query('select language_id, title from :table_products_images_groups where id = :id');
$Qgd->bindTable(':table_products_images_groups', TABLE_PRODUCTS_IMAGES_GROUPS);
$Qgd->bindInt(':id', $id);
$Qgd->execute();
while ($Qgd->next()) {
$status_name[$Qgd->valueInt('language_id')] = $Qgd->value('title');
}
$result['editTitleCode'] = '';
foreach ($lC_Language->getAll() as $l) {
$result['editTitleCode'] .= '<span class="input" style="width:95%"><label for="title[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('title[' . $l['id'] . ']', isset($status_name[$l['id']]) ? $status_name[$l['id']] : null, 'class="input-unstyled"') . '</span><br />';
}
$result['code'] = $lC_ObjectInfo->get('code');
$result['width'] = $lC_ObjectInfo->get('size_width');
$result['height'] = $lC_ObjectInfo->get('size_height');
$result['force_size'] = $lC_ObjectInfo->get('force_size');
}
return $result;
}
示例3: setFunction
public function setFunction($value, $value2 = null)
{
global $lC_Language;
if (utility::isPro() === false) {
$string = '<span class="input large-margin-bottom">
<span class="icon-calendar mid-margin-right"></span>
' . lc_draw_input_field('attributes[' . self::getID() . ']', $value, 'id="attributes_' . self::getID() . '" class="input-unstyled datepicker"') . '
</span>
<span class="input relative disabled date-available-ends margin-bottom">
<span class="icon-calendar mid-margin-right"></span>
<div class="strong upsellwrapper" style="position:absolute;top:-29px;left:0px;">
<span class="upsellinfo" upselltitle="' . $lC_Language->get('text_availability_ends') . '" upselldesc="' . $lC_Language->get('text_availability_ends_desc') . '">Ends</span> ' . lc_go_pro() . '
</div>
' . lc_draw_input_field('availability_ends_go_pro', null, 'id="availability_ends_go_pro" class="input-unstyled" disabled') . '
</span>
';
} else {
$string = '<div class="no-wrap"><span class="input large-margin-bottom" style="width:46%;">
<span class="icon-calendar mid-margin-right"></span>
' . lc_draw_input_field('attributes[' . self::getID() . ']', $value, 'id="attributes_' . self::getID() . '" class="input-unstyled datepicker"') . '
</span>
<span class="input relative date-available-ends margin-bottom" style="width:46%;">
<span class="icon-calendar mid-margin-right"></span>
<div class="strong" style="position:absolute;top:-29px;left:0px;">
<span>Ends</span>
</div>
' . lc_draw_input_field('attributes2[' . self::getID() . ']', $value2, 'id="attributes2_' . self::getID() . '" class="input-unstyled datepicker"') . '
</span></div>
';
}
return $string;
}
示例4: getData
public static function getData($id)
{
global $lC_Database, $lC_Vqmod;
include $lC_Vqmod->modCheck('includes/modules/services/' . $_GET['module'] . '.php');
$module = 'lC_Services_' . $_GET['module'] . '_Admin';
$module = new $module();
$cnt = 0;
$keys = '';
$result = array();
foreach ($module->keys() as $key) {
$Qkey = $lC_Database->query('select configuration_title, configuration_value, configuration_description, use_function, set_function from :table_configuration where configuration_key = :configuration_key');
$Qkey->bindTable(':table_configuration', TABLE_CONFIGURATION);
$Qkey->bindValue(':configuration_key', $key);
$Qkey->execute();
$keys .= '<label for="' . $Qkey->value('configuration_title') . '" class="label"><strong>' . $Qkey->value('configuration_title') . '</strong></label>';
if (!lc_empty($Qkey->value('set_function'))) {
$keys .= lc_call_user_func($Qkey->value('set_function'), $Qkey->value('configuration_value'), $key);
} else {
$keys .= lc_draw_input_field('configuration[' . $key . ']', $Qkey->value('configuration_value'), 'class="input" onfocus="this.select();" style="width:28%;"');
}
$keys .= '<span class="margin-left">' . lc_show_info_bubble($Qkey->value('configuration_description'), null, 'on-left grey') . '</span><br /><br />';
$cnt++;
}
$result['keys'] = substr($keys, 0, strrpos($keys, '<br /><br />'));
$result['totalKeys'] = $cnt;
$result['title'] = $module->title;
return $result;
}
示例5: initialize
public function initialize()
{
global $lC_Language, $lC_Template, $lC_Product;
if (isset($lC_Product) && is_a($lC_Product, 'lC_Product') && $lC_Template->getModule() != 'tell_a_friend') {
$this->_content = '<li class="box-tell-a-friend-input">' . lc_draw_input_field('to_email_address', null, 'id="box-to_email_address" class="box-to-email-address"') . ' <a class="box-tell-a-friend-submit" onclick="$(this).closest(\'form\').submit();"></a></li>' . "\n" . '<li class="box-tell-a-friend-text">' . $lC_Language->get('box_tell_a_friend_text') . '</li>' . "\n";
}
}
示例6: getData
public static function getData($id)
{
global $lC_Database, $lC_Language, $lC_Vqmod;
include $lC_Vqmod->modCheck('../includes/classes/modules.php');
$lC_Language->load('modules-' . $_GET['set']);
include $lC_Vqmod->modCheck('../includes/modules/' . $_GET['set'] . '/' . $id . '.php');
$module = 'lC_' . ucfirst($_GET['set']) . '_' . $id;
$lC_Language->injectDefinitions('modules/' . $_GET['set'] . '/' . $id . '.xml');
$module = new $module();
$cnt = 0;
$keys = '';
$result = array();
foreach ($module->getKeys() as $key) {
$Qkey = $lC_Database->query('select configuration_title, configuration_key, configuration_value, configuration_description, use_function, set_function from :table_configuration where configuration_key = :configuration_key');
$Qkey->bindTable(':table_configuration', TABLE_CONFIGURATION);
$Qkey->bindValue(':configuration_key', $key);
$Qkey->execute();
$keys .= '<b>' . $Qkey->value('configuration_title') . '</b><br />' . $Qkey->value('configuration_description') . '<br />';
if (!lc_empty($Qkey->value('set_function'))) {
$keys .= lc_call_user_func($Qkey->value('set_function'), $Qkey->value('configuration_value'), $key);
} else {
$keys .= lc_draw_input_field('configuration[' . $key . ']', $Qkey->value('configuration_value'));
}
$keys .= '<br /><br />';
$cnt++;
}
$result['keys'] = substr($keys, 0, strrpos($keys, '<br /><br />'));
$result['totalKeys'] = $cnt;
$result['title'] = $module->getTitle();
$result['author'] = $module->getAuthorName();
return $result;
}
示例7: getFormData
public static function getFormData($id = null, $edit = false)
{
global $lC_Database, $lC_Language;
$result = array();
$result['names'] = '';
foreach ($lC_Language->getAll() as $l) {
$result['names'] .= '<span class="input" style="width:88%"><label for="name[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('name[' . $l['id'] . ']', null, 'class="input-unstyled"') . '</span><br />';
}
if (isset($id) && $id != null) {
if ($edit === true) {
$Qsd = $lC_Database->query('select language_id, orders_status_name, orders_status_type from :table_orders_status where orders_status_id = :orders_status_id');
$Qsd->bindTable(':table_orders_status', TABLE_ORDERS_STATUS);
$Qsd->bindInt(':orders_status_id', $id);
$Qsd->execute();
$status_name = array();
while ($Qsd->next()) {
$status_name[$Qsd->valueInt('language_id')] = $Qsd->value('orders_status_name');
$status_type = $Qsd->value('orders_status_type');
}
$result['editNames'] = '';
$result['editType'] = $status_type;
foreach ($lC_Language->getAll() as $l) {
$result['editNames'] .= '<span class="input" style="width:88%"><label for="name[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('name[' . $l['id'] . ']', isset($status_name[$l['id']]) ? $status_name[$l['id']] : null, 'class="input-unstyled"') . '</span><br />';
}
} else {
$Qorders = $lC_Database->query('select count(*) as total from :table_orders where orders_status = :orders_status');
$Qorders->bindTable(':table_orders', TABLE_ORDERS);
$Qorders->bindInt(':orders_status', $id);
$Qorders->execute();
$Qhistory = $lC_Database->query('select count(*) as total from :table_orders_status_history where orders_status_id = :orders_status_id group by orders_id');
$Qhistory->bindTable(':table_orders_status_history', TABLE_ORDERS_STATUS_HISTORY);
$Qhistory->bindInt(':orders_status_id', $id);
$Qhistory->execute();
if ($Qorders->valueInt('total') > 0 || $Qhistory->valueInt('total') > 0) {
if ($Qorders->valueInt('total') > 0) {
$result['rpcStatus'] = -2;
$result['totalOrders'] = $Qorders->valueInt('total');
}
if ($Qhistory->valueInt('total') > 0) {
$result['rpcStatus'] = -3;
$result['totalOrders'] = $Qhistory->valueInt('total');
}
}
}
}
return $result;
}
示例8: getFormData
public static function getFormData($id = null)
{
global $lC_Database, $lC_Language;
$result = array();
foreach ($lC_Language->getAll() as $l) {
$result['mfgUrl'] .= '<span class="input" style="width:88%"><label for="name[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('manufacturers_url[' . $l['id'] . ']', null, 'class="input-unstyled"') . '</span><br />';
}
if ($id != null && is_numeric($id)) {
$manufacturers_array = array();
$Qmanufacturer = $lC_Database->query('select manufacturers_url, languages_id from :table_manufacturers_info where manufacturers_id = :manufacturers_id');
$Qmanufacturer->bindTable(':table_manufacturers_info', TABLE_MANUFACTURERS_INFO);
$Qmanufacturer->bindInt(':manufacturers_id', $id);
$Qmanufacturer->execute();
while ($Qmanufacturer->next()) {
$manufacturers_array[$Qmanufacturer->valueInt('languages_id')] = $Qmanufacturer->value('manufacturers_url');
}
foreach ($lC_Language->getAll() as $l) {
$result['editMfgUrl'] .= '<span class="input" style="width:88%"><label for="name[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('manufacturers_url[' . $l['id'] . ']', $manufacturers_array[$l['id']], 'class="input-unstyled"') . '</span><br />';
}
$result['mData'] = lC_Manufacturers_Admin::getData($id, $lC_Language->getID());
$result['mImage'] = lc_image('../' . DIR_WS_IMAGES . 'manufacturers/' . $result['mData']['manufacturers_image'], $result['mData']['manufacturers_name']) . '<br />' . DIR_WS_CATALOG . DIR_WS_IMAGES . 'manufacturers/' . $result['mData']['manufacturers_image'] . '<br />';
}
return $result;
}
示例9: lc_round
<div class="inputs blue-gradient" style="display:inline; padding:8px 0;">
<span class="mid-margin-left no-margin-right strong"><?php
echo $lC_Currencies->getSymbolLeft();
?>
</span>
<?php
if (isset($pInfo)) {
if (DISPLAY_PRICE_WITH_TAX == 1 || $_SESSION['localization']['show_tax'] == 1) {
$products_price_gross = lc_round($pInfo->get('products_price_with_tax'), DECIMAL_PLACES);
} else {
$products_price_gross = lc_round($pInfo->get('products_price'), DECIMAL_PLACES);
}
} else {
$products_price_gross = null;
}
echo lc_draw_input_field('products_price_gross', $products_price_gross, 'style="width:94%;" class="input-unstyled strong products-price-gross" id="products_price0_gross" READONLY');
?>
</div>
</div>
</div>
</div>
</fieldset>
<fieldset class="fieldset">
<legend class="legend"><?php
echo $lC_Language->get('text_management_settings');
?>
</legend>
<div class="columns no-margin-bottom">
<?php
echo lC_Products_Admin::getProductAttributeModules('dataManagementSettings');
?>
示例10: lc_draw_input_field
</label>'+
' <span class="input">'+
' <span class="icon-calendar"></span>'+
' <?php
echo lc_draw_input_field('date_expires', null, 'class="input-unstyled datepicker"');
?>
'+
' </span>'+
' </p>'+
' <p class="button-height inline-label">'+
' <label for="expires_impressions" class="label"><?php
echo $lC_Language->get('field_maximum_impressions');
?>
</label>'+
' <?php
echo lc_draw_input_field('expires_impressions', null, 'class="input" maxlength="7" size="7"');
?>
'+
' </p>'+
' <p class="button-height inline-label">'+
' <label for="status" class="label"><?php
echo $lC_Language->get('field_status');
?>
</label>'+
' <?php
echo ' ' . lc_draw_checkbox_field('status', null, null, 'class="switch medium checked" checked="checked" data-text-on="' . strtoupper($lC_Language->get('button_yes')) . '" data-text-off="' . strtoupper($lC_Language->get('button_no')) . '"');
?>
'+
' </p>'+
' </form>'+
' <hr>'+
示例11: lc_draw_file_field
' <label for="categories_image" class="label" style="width:33%;"><?php
echo $lC_Language->get('field_image');
?>
</label>'+
' <?php
echo lc_draw_file_field('categories_image', true, 'class="file"');
?>
'+
' </p>'+
' <p class="button-height inline-label">'+
' <label for="sort_order" class="label" style="width:33%;"><?php
echo $lC_Language->get('field_sort_order');
?>
</label>'+
' <?php
echo lc_draw_input_field('sort_order', null, 'class="input" id="editSortOrder"');
?>
'+
' </p>'+
' </form>'+
' </div>'+
'</div>',
title: '<?php
echo $lC_Language->get('modal_heading_edit_category');
?>
',
width: 500,
actions: {
'Close' : {
color: 'red',
click: function(win) { win.closeModal(); }
示例12: lc_draw_input_field
' <label for="price" class="label"><?php
echo $lC_Language->get('text_price');
?>
</label>'+
' <?php
echo lc_draw_input_field('price', null, 'class="input mid-margin-top" id="editPrice"');
?>
'+
' </p>'+
' <p class="button-height inline-label">'+
' <label for="quantity" class="label"><?php
echo $lC_Language->get('text_quantity');
?>
</label>'+
' <?php
echo lc_draw_input_field('quantity', null, 'class="input mid-margin-top" id="editQuantity"');
?>
'+
' </p>'+
' </form>'+
' </div>'+
' <span id="oId" style="display:none;"></span>'+
' <span id="pId" style="display:none;"></span>'+
' <span id="opId" style="display:none;"></span>'+
'</div>',
title: '<?php
echo $lC_Language->get('text_product_details');
?>
',
width: 600,
scrolling: true,
示例13: getZones
public static function getZones($id)
{
global $lC_Database;
$Qcheck = $lC_Database->query('select zone_id from :table_zones where zone_country_id = :zone_country_id limit 1');
$Qcheck->bindTable(':table_zones', TABLE_ZONES);
$Qcheck->bindInt(':zone_country_id', $id);
$Qcheck->execute();
$entry_state_has_zones = $Qcheck->numberOfRows() > 0;
$Qcheck->freeResult();
$result = array();
if (isset($entry_state_has_zones) && $entry_state_has_zones === true) {
$Qzones = $lC_Database->query('select zone_name from :table_zones where zone_country_id = :zone_country_id order by zone_name');
$Qzones->bindTable(':table_zones', TABLE_ZONES);
$Qzones->bindInt(':zone_country_id', $id);
$Qzones->execute();
$zones_array = array();
while ($Qzones->next()) {
$zones_array[] = array('id' => $Qzones->value('zone_name'), 'text' => $Qzones->value('zone_name'));
}
$result['abZonesDropdown'] = lc_draw_pull_down_menu('ab_state', $zones_array, null, 'class="input with-small-padding" style="width:73%;"');
} else {
$result['abZonesDropdown'] = lc_draw_input_field('ab_state');
}
return $result;
}
示例14: lc_draw_input_field
' <label for="value" class="label" style="width:31% !important;"><?php
echo $lC_Language->get('field_definition_group');
?>
</label>'+
' <span id="groupSelection"></span><span class="icon-info-round icon-blue with-tooltip small-margin-left" title="<?php
echo $lC_Language->get('tooltip_definition_group');
?>
" style="cursor:pointer;" data-tooltip-options=\'{"classes":["anthracite-gradient"]}\'></span>'+
' </p>'+
' <p class="button-height inline-label">'+
' <label for="group_new" class="label" style="width:31% !important;"><?php
echo $lC_Language->get('field_definition_new_group');
?>
</label>'+
' <?php
echo lc_draw_input_field('group_new', null, 'class="input" style="width:90%;"');
?>
<span class="icon-info-round icon-blue with-tooltip small-margin-left" title="<?php
echo $lC_Language->get('tooltip_new_definition_group');
?>
" style="cursor:pointer;" data-tooltip-options=\'{"classes":["anthracite-gradient"]}\'></span>'+
' </p>'+
' </form>'+
' </div>'+
'</div>',
title: '<?php
echo $lC_Language->get('modal_heading_new_language_definition');
?>
',
width: 500,
actions: {
示例15: formData
public static function formData($id = null, $parent = null)
{
global $lC_Language, $_module;
$lC_Language->loadIniFile('categories.php');
$lC_CategoryTree = new lC_CategoryTree_Admin();
$result = array();
$categories_array = array('0' => $lC_Language->get('top_category'));
foreach ($lC_CategoryTree->getArray() as $value) {
$cid = explode('_', $value['id']);
$count = count($cid);
$cid = end($cid);
$acArr = lC_Categories_Admin::getAllChildren($id);
if ($cid != $id && !lC_Categories_Admin::in_array_r($cid, $acArr)) {
$categories_array[$cid] = str_repeat(" ", $count - 1) . ' ' . $value['title'];
}
}
$result['categoriesArray'] = $categories_array;
if (isset($id) && is_numeric($id)) {
$result['cData'] = lC_Categories_Admin::get($id, $lC_Language->getID());
$result['categoryImage'] = '';
$lC_ObjectInfo = new lC_ObjectInfo(lC_Categories_Admin::get($id));
if (!lc_empty($lC_ObjectInfo->get('categories_image'))) {
$result['categoryImage'] = '<div><p>' . lc_image('../' . DIR_WS_IMAGES . 'categories/' . $lC_ObjectInfo->get('categories_image'), $lC_ObjectInfo->get('categories_name'), HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT) . '<br />' . DIR_WS_CATALOG . 'images/categories/' . $lC_ObjectInfo->getProtected('categories_image') . '</p></div>';
}
}
$category_names = '';
foreach ($lC_Language->getAll() as $l) {
if (isset($id) && is_numeric($id)) {
$category_names .= '<span class="input" style="width:88%"><label for="categories_name[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('categories_name[' . $l['id'] . ']', $result['cData']['categories_name'], 'class="input-unstyled"') . '</span><br />';
} else {
$category_names .= '<span class="input" style="width:88%"><label for="categories_name[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('categories_name[' . $l['id'] . ']', null, 'class="input-unstyled"') . '</span><br />';
}
}
$result['categoryNames'] = $category_names;
$result['parentCategory'] = isset($parent) && $parent != null ? $parent : 0;
return $result;
}