当前位置: 首页>>代码示例>>PHP>>正文


PHP zen_output_string函数代码示例

本文整理汇总了PHP中zen_output_string函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_output_string函数的具体用法?PHP zen_output_string怎么用?PHP zen_output_string使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了zen_output_string函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: zen_my_image_submit

/** Product Finder mod
 * /includes/functions/extra_functions/product_finder.php
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: product_finder.php 2010-08-05
 */
function zen_my_image_submit($image, $alt = '', $parameters = '', $sec_class = '')
{
    global $template, $current_page_base, $zco_notifier;
    $zco_notifier->notify('PAGE_OUTPUT_IMAGE_SUBMIT');
    $image_submit = '<input type="image" src="' . zen_output_string($template->get_template_dir($image, DIR_WS_TEMPLATE, $current_page_base, 'buttons/' . $_SESSION['language'] . '/') . $image) . '" alt="' . zen_output_string($alt) . '"';
    if (zen_not_null($alt)) {
        $image_submit .= ' title=" ' . zen_output_string($alt) . ' "';
    }
    if (zen_not_null($parameters)) {
        $image_submit .= ' ' . $parameters;
    }
    $image_submit .= ' />';
    return $image_submit;
}
开发者ID:Zen4All-nl,项目名称:Zen-Cart-Product-Finder,代码行数:19,代码来源:product_finder.php

示例2: zen_draw_pull_down_menu_SBAmod

function zen_draw_pull_down_menu_SBAmod($name, $values, $default = '', $parameters = '', $required = false, $disable = null, $options_menu_images = null)
{
    global $template_dir;
    $tmp_attribID = trim($name, 'id[]');
    //used to get the select ID reference to be used in jquery
    $field = '<script type="text/javascript">
	  			$(function(){
					$("#attrib-' . $tmp_attribID . '").on("click", function(){
						$("#SBA_ProductImage").attr("src", $(this).find(":selected").attr("data-src"));
					});
				});
			</script>';
    $field .= '<select name="' . zen_output_string($name) . '" onclick=""';
    if (zen_not_null($parameters)) {
        $field .= ' ' . $parameters;
    }
    $field .= '>' . "\n";
    if (empty($default) && isset($GLOBALS[$name]) && is_string($GLOBALS[$name])) {
        $default = stripslashes($GLOBALS[$name]);
    }
    for ($i = 0, $n = sizeof($values); $i < $n; $i++) {
        $field .= '  <option value="' . zen_output_string($values[$i]['id']) . '"';
        if ($default == $values[$i]['id']) {
            $field .= ' selected="selected"';
        }
        //"Stock by Attributes" // Need to determine this being disabled by a
        // numerical method rather than a text possessing method.  If PWA_OUTOF_STOCK is not present then the item may not be disabled... :/
        if ($disable && strpos($values[$i]['text'], trim(PWA_OUT_OF_STOCK))) {
            $field .= $disable;
        }
        //add image link if available
        if (!empty($options_menu_images[$i]['src'])) {
            $field .= ' data-src="' . $options_menu_images[$i]['src'] . '"';
        }
        //close tag and display text
        //      $field .= '>' . zen_output_string($values[$i]['text'], array('"' => '&quot;', '\'' => '&#039;', '<' => '&lt;', '>' => '&gt;')) . '</option>' . "\n";
        $field .= '>' . zen_output_string_protected($values[$i]['text']) . '</option>' . "\n";
    }
    $field .= '</select>' . "\n";
    if ($required == true) {
        $field .= TEXT_FIELD_REQUIRED;
    }
    return $field;
}
开发者ID:badarac,项目名称:stock_by_attribute_1.5.4,代码行数:44,代码来源:products_with_attributes.php

示例3: zen_lightbox

/**
 * Zen Lightbox
 *
 * @author Alex Clarke (aclarke@ansellandclarke.co.uk)
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: zen_lightbox.php 2008-12-11 aclarke $
 */
function zen_lightbox($src, $alt = '', $width = '', $height = '', $parameters = '')
{
    global $template_dir;
    // auto replace with defined missing image
    if ($src == DIR_WS_IMAGES and PRODUCTS_IMAGE_NO_IMAGE_STATUS == '1') {
        $src = DIR_WS_IMAGES . PRODUCTS_IMAGE_NO_IMAGE;
    }
    if ((empty($src) || $src == DIR_WS_IMAGES) && IMAGE_REQUIRED == 'false') {
        return false;
    }
    // if not in current template switch to template_default
    if (!file_exists($src)) {
        $src = str_replace(DIR_WS_TEMPLATES . $template_dir, DIR_WS_TEMPLATES . 'template_default', $src);
    }
    // hook for handle_image() function such as Image Handler etc
    if (function_exists('handle_image')) {
        $newimg = handle_image($src, $alt, $width, $height, $parameters);
        list($src, $alt, $width, $height, $parameters) = $newimg;
    }
    $image = zen_output_string($src);
    return $image;
}
开发者ID:wwxgitcat,项目名称:zencart_v1.0,代码行数:31,代码来源:zen_lightbox.php

示例4: array

 * if (($_GET['main_page']==FILENAME_DEFAULT and ($_GET['cPath'] == '' or $_GET['cPath'] == 0)) or ($request_type == 'SSL')) { $show_manufacturers= false; } else { $show_manufacturers= true; }
 */
if ($show_manufacturers) {
    // only check products if requested - this may slow down the processing of the manufacturers sidebox
    if (PRODUCTS_MANUFACTURERS_STATUS == '1') {
        $manufacturer_sidebox_query = "select distinct m.manufacturers_id, m.manufacturers_name\n                            from " . TABLE_MANUFACTURERS . " m\n                            left join " . TABLE_PRODUCTS . " p on m.manufacturers_id = p.manufacturers_id\n                            where m.manufacturers_id = p.manufacturers_id and p.products_status= 1\n                            order by manufacturers_name";
    } else {
        $manufacturer_sidebox_query = "select m.manufacturers_id, m.manufacturers_name\n                            from " . TABLE_MANUFACTURERS . " m\n                            order by manufacturers_name";
    }
    $manufacturer_sidebox = $db->Execute($manufacturer_sidebox_query);
    if ($manufacturer_sidebox->RecordCount() > 0) {
        $number_of_rows = $manufacturer_sidebox->RecordCount() + 1;
        // Display a list
        $manufacturer_sidebox_array = array();
        if (!isset($_GET['manufacturers_id']) || $_GET['manufacturers_id'] == '') {
            $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_ALL);
        } else {
            $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_MANUFACTURERS);
        }
        while (!$manufacturer_sidebox->EOF) {
            $manufacturer_sidebox_name = zen_output_string(strlen($manufacturer_sidebox->fields['manufacturers_name']) > (int) MAX_DISPLAY_MANUFACTURER_NAME_LEN ? substr($manufacturer_sidebox->fields['manufacturers_name'], 0, (int) MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturer_sidebox->fields['manufacturers_name'], false, true);
            $manufacturer_sidebox_array[] = array('id' => $manufacturer_sidebox->fields['manufacturers_id'], 'text' => $manufacturer_sidebox_name);
            $manufacturer_sidebox->MoveNext();
        }
        require $template->get_template_dir('tpl_manufacturers_select.php', DIR_WS_TEMPLATE, $current_page_base, 'sideboxes') . '/tpl_manufacturers_select.php';
        $title = '<label>' . BOX_HEADING_MANUFACTURERS . '</label>';
        $title_link = false;
        require $template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base, 'common') . '/' . $column_box_default;
    }
}
// $show_manufacturers
开发者ID:wwxgitcat,项目名称:zencart_v1.0,代码行数:31,代码来源:manufacturers.php

示例5: zen_image

			<label class="inputLabel"
				<?php 
                    echo $selection[$i]['fields'][$j]['tag'] ? ' for="' . $selection[$i]['fields'][$j]['tag'] . '"' : '';
                    ?>
><?php 
                    echo $selection[$i]['fields'][$j]['title'];
                    ?>
</label>      
      <?php 
                    echo $selection[$i]['fields'][$j]['field'];
                    ?>
      <?php 
                    if ($selection[$i]['module'] != MODULE_ORDER_TOTAL_INSURANCE_TITLE && $selection[$i]['module'] != MODULE_ORDER_TOTAL_SC_TITLE) {
                        ?>
      <div class="buttonRow"><?php 
                        echo zen_image(zen_output_string($template->get_template_dir(BUTTON_IMAGE_UPDATE, DIR_WS_TEMPLATE, $current_page_base, 'buttons/' . $_SESSION['language'] . '/') . BUTTON_IMAGE_UPDATE), BUTTON_UPDATE_ALT, '', '', 'onclick="updateForm();"');
                        ?>
</div>
      <?php 
                    }
                    ?>
  
    </div>
	</fieldset>
</div>
<?php 
                    if ($selectionStyle == 'split' && $box == 'even') {
                        echo '<br class="clearBoth" />';
                    }
                    ?>
		
开发者ID:wwxgitcat,项目名称:zencart_v1.0,代码行数:30,代码来源:tpl_checkout_stacked.php

示例6: zen_create_sort_heading

function zen_create_sort_heading($sortby, $colnum, $heading)
{
    global $PHP_SELF;
    $sort_prefix = '';
    $sort_suffix = '';
    if ($sortby) {
        $sort_prefix = '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('page', 'info', 'sort')) . 'page=1&sort=' . $colnum . ($sortby == $colnum . 'a' ? 'd' : 'a')) . '" title="' . zen_output_string(TEXT_SORT_PRODUCTS . ($sortby == $colnum . 'd' || substr($sortby, 0, 1) != $colnum ? TEXT_ASCENDINGLY : TEXT_DESCENDINGLY) . TEXT_BY . $heading) . '" class="productListing-heading">';
        $sort_suffix = (substr($sortby, 0, 1) == $colnum ? substr($sortby, 1, 1) == 'a' ? PRODUCT_LIST_SORT_ORDER_ASCENDING : PRODUCT_LIST_SORT_ORDER_DESCENDING : '') . '</a>';
    }
    return $sort_prefix . $heading . $sort_suffix;
}
开发者ID:dalinhuang,项目名称:cameras,代码行数:11,代码来源:functions_general.php

示例7: echo

              <tr class="<?php echo (floor($rows/2) == ($rows/2) ? 'attributes-even' : 'attributes-odd'); ?>">
<?php
// edit option name
      if (($action == 'update_option') && ($_GET['option_id'] == $options_values->fields['products_options_id'])) {
        echo '<form name="option" action="' . zen_href_link(FILENAME_OPTIONS_NAME_MANAGER, 'action=update_option_name' . (isset($_GET['option_page']) ? '&option_page=' . $_GET['option_page'] . '&' : '') . (isset($_GET['value_page']) ? '&value_page=' . $_GET['value_page'] . '&' : '') . (isset($_GET['attribute_page']) ? '&attribute_page=' . $_GET['attribute_page'] : '')  . '&option_order_by=' . $option_order_by) . '" method="post">';echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']);
        $inputs = '';
        $inputs2 = '';
        for ($i = 0, $n = sizeof($languages); $i < $n; $i ++) {
          $option_name = $db->Execute("select products_options_name, products_options_sort_order, products_options_size, products_options_length, products_options_comment, products_options_images_per_row, products_options_images_style, products_options_rows
                                       from " . TABLE_PRODUCTS_OPTIONS . "
                                       where products_options_id = '" . (int)$options_values->fields['products_options_id'] . "'
                                       and language_id = '" . (int)$languages[$i]['id'] . "'");

          $inputs .= $languages[$i]['code'] . ':&nbsp;<input type="text" name="option_name[' . $languages[$i]['id'] . ']" ' . zen_set_field_length(TABLE_PRODUCTS_OPTIONS, 'products_options_name', 40) . ' value="' . zen_output_string($option_name->fields['products_options_name']) . '">' . TEXT_SORT . '<input type="text" name="products_options_sort_order[' . $languages[$i]['id'] . ']" size="3" value="' . $option_name->fields['products_options_sort_order'] . '">&nbsp;<br />';
          $inputs2 .= $languages[$i]['code'] . ':&nbsp; ' .
                   '&nbsp;' . TEXT_OPTION_VALUE_COMMENTS . '<input type="text" name="products_options_comment[' . $languages[$i]['id'] . ']" size="50" value="' . zen_output_string($option_name->fields['products_options_comment']) . '">' .
                   '<br /><br />' . TEXT_OPTION_VALUE_ROWS . '<input type="text" name="products_options_rows[' . $languages[$i]['id'] . ']" size="3" value="' . $option_name->fields['products_options_rows'] . '">' .
                   '&nbsp;' . TEXT_OPTION_VALUE_SIZE . '<input type="text" name="products_options_size[' . $languages[$i]['id'] . ']" size="3" value="' . $option_name->fields['products_options_size'] . '">' .
                   '&nbsp;' . TEXT_OPTION_VALUE_MAX . '<input type="text" name="products_options_length[' . $languages[$i]['id'] . ']" size="3" value="' . $option_name->fields['products_options_length'] . '">' .
                   '<br /><br />' . TEXT_OPTION_ATTRIBUTE_IMAGES_PER_ROW . '<input type="text" name="products_options_images_per_row[' . $languages[$i]['id'] . ']" size="3" value="' . $option_name->fields['products_options_images_per_row'] . '">' .
                   '&nbsp;' . TEXT_OPTION_ATTRIBUTE_IMAGES_STYLE . '<input type="text" name="products_options_images_style[' . $languages[$i]['id'] . ']" size="3" value="' . $option_name->fields['products_options_images_style'] . '">' . '<br /><br />';

        }

//CLR 030212 - Add column for option type
?>
                <td height="50" align="center" class="attributeBoxContent">&nbsp;<?php echo $options_values->fields['products_options_id']; ?><input type="hidden" name="option_id" value="<?php echo $options_values->fields['products_options_id']; ?>">&nbsp;</td>
                <td class="attributeBoxContent"><?php echo $inputs; ?></td>
                <td class="attributeBoxContent"><?php echo draw_optiontype_pulldown('option_type', $options_values->fields['products_options_type']); ?></td>
                <td colspan="3" align="left" class="attributeBoxContent">&nbsp;</td>
                <td colspan="1"  align="center" class="attributeBoxContent">&nbsp;<?php echo zen_image_submit('button_update.gif', IMAGE_UPDATE); ?>&nbsp;<?php echo '<a href="' . zen_href_link(FILENAME_OPTIONS_NAME_MANAGER, (isset($_GET['option_page']) ? '&option_page=' . $_GET['option_page'] . '&' : '') . (isset($_GET['value_page']) ? '&value_page=' . $_GET['value_page'] . '&' : '') . (isset($_GET['attribute_page']) ? '&attribute_page=' . $_GET['attribute_page'] : '') . '&option_order_by=' . $option_order_by ) . '">'; ?><?php echo zen_image_button('button_cancel.gif', IMAGE_CANCEL); ?></a>&nbsp;</td>
开发者ID:quangn92,项目名称:visualyou,代码行数:31,代码来源:options_name_manager.php

示例8: floor

        ?>
              <tr class="<?php 
        echo floor($rows / 2) == $rows / 2 ? 'attributes-even' : 'attributes-odd';
        ?>
">
<?php 
        // edit option name
        if ($action == 'update_option' && $_GET['option_id'] == $options_values->fields['products_options_id']) {
            echo '<form name="option" action="' . zen_href_link(FILENAME_OPTIONS_NAME_MANAGER, 'action=update_option_name' . (isset($_GET['option_page']) ? '&option_page=' . $_GET['option_page'] . '&' : '') . (isset($_GET['value_page']) ? '&value_page=' . $_GET['value_page'] . '&' : '') . (isset($_GET['attribute_page']) ? '&attribute_page=' . $_GET['attribute_page'] : '') . '&option_order_by=' . $option_order_by) . '" method="post">';
            echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']);
            $inputs = '';
            $inputs2 = '';
            for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
                $option_name = $db->Execute("select products_options_name, products_options_sort_order, products_options_size, products_options_length, products_options_comment, products_options_images_per_row, products_options_images_style, products_options_rows\n                                       from " . TABLE_PRODUCTS_OPTIONS . "\n                                       where products_options_id = '" . (int) $options_values->fields['products_options_id'] . "'\n                                       and language_id = '" . (int) $languages[$i]['id'] . "'");
                $inputs .= $languages[$i]['code'] . ':&nbsp;<input type="text" name="option_name[' . $languages[$i]['id'] . ']" ' . zen_set_field_length(TABLE_PRODUCTS_OPTIONS, 'products_options_name', 40) . ' value="' . zen_output_string($option_name->fields['products_options_name']) . '">' . TEXT_SORT . '<input type="text" name="products_options_sort_order[' . $languages[$i]['id'] . ']" size="3" value="' . $option_name->fields['products_options_sort_order'] . '">&nbsp;<br />';
                $inputs2 .= $languages[$i]['code'] . ':&nbsp; ' . '&nbsp;' . TEXT_OPTION_VALUE_COMMENTS . '<input type="text" name="products_options_comment[' . $languages[$i]['id'] . ']" size="50" value="' . zen_output_string($option_name->fields['products_options_comment']) . '">' . '<br /><br />' . TEXT_OPTION_VALUE_ROWS . '<input type="text" name="products_options_rows[' . $languages[$i]['id'] . ']" size="3" value="' . $option_name->fields['products_options_rows'] . '">' . '&nbsp;' . TEXT_OPTION_VALUE_SIZE . '<input type="text" name="products_options_size[' . $languages[$i]['id'] . ']" size="3" value="' . $option_name->fields['products_options_size'] . '">' . '&nbsp;' . TEXT_OPTION_VALUE_MAX . '<input type="text" name="products_options_length[' . $languages[$i]['id'] . ']" size="3" value="' . $option_name->fields['products_options_length'] . '">' . '<br /><br />' . TEXT_OPTION_ATTRIBUTE_IMAGES_PER_ROW . '<input type="text" name="products_options_images_per_row[' . $languages[$i]['id'] . ']" size="3" value="' . $option_name->fields['products_options_images_per_row'] . '">' . '&nbsp;' . TEXT_OPTION_ATTRIBUTE_IMAGES_STYLE . '<input type="text" name="products_options_images_style[' . $languages[$i]['id'] . ']" size="3" value="' . $option_name->fields['products_options_images_style'] . '">' . '<br /><br />';
            }
            //CLR 030212 - Add column for option type
            ?>
                <td height="50" align="center" class="attributeBoxContent">&nbsp;<?php 
            echo $options_values->fields['products_options_id'];
            ?>
<input type="hidden" name="option_id" value="<?php 
            echo $options_values->fields['products_options_id'];
            ?>
">&nbsp;</td>
                <td class="attributeBoxContent"><?php 
            echo $inputs;
            ?>
</td>
                <td class="attributeBoxContent"><?php 
开发者ID:zenmagick,项目名称:zencart,代码行数:31,代码来源:options_name_manager.php

示例9: zen_output_string

    <p class="messageStackError"><?php 
    echo $message;
    ?>
</p>
    <label class="loginLabel" for="admin_name-<?php 
    echo $_SESSION['securityToken'];
    ?>
"><?php 
    echo TEXT_ADMIN_NAME;
    ?>
</label>
    <input style="float: left" type="text" id="admin_name" name="admin_name-<?php 
    echo $_SESSION['securityToken'];
    ?>
" value="<?php 
    echo zen_output_string($admin_name);
    ?>
" autocomplete="off"/>
    <br class="clearBoth" />
    <label class="loginLabel" for="oldpwd-<?php 
    echo $_SESSION['securityToken'];
    ?>
"><?php 
    echo TEXT_ADMIN_OLD_PASSWORD;
    ?>
</label>
    <input style="float: left" type="password" id="old_pwd" name="oldpwd-<?php 
    echo $_SESSION['securityToken'];
    ?>
" autocomplete="off" />
    <br class="clearBoth" />
开发者ID:kirkbauer2,项目名称:kirkzc,代码行数:31,代码来源:login.php

示例10: imageSubmit

 function imageSubmit($image, $alt = '', $parameters = '', $sec_class = '')
 {
     global $current_page_base;
     if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strlen($alt) < 30) {
         return zenCssButton($image, $alt, 'submit', $sec_class);
     }
     $image_submit = '<input type="image" src="' . zen_output_string($this->_getTemplateDir($image, $current_page_base, 'buttons/' . $_SESSION['language'] . '/') . $image) . '" alt="' . zen_output_string($alt) . '"';
     if (zen_not_null($alt)) {
         $image_submit .= ' title=" ' . zen_output_string($alt) . ' "';
     }
     if (zen_not_null($parameters)) {
         $image_submit .= ' ' . $parameters;
     }
     $image_submit .= ' />';
     return $image_submit;
 }
开发者ID:sgkohata,项目名称:zencart-sugu,代码行数:16,代码来源:class.addOnModuleBase.php

示例11: foreach

</strong>
        <input class="checkButton" type="button" value="Check All" onclick="checkAll(this.form,'<?php 
        echo $menuKey;
        ?>
',true);">
        <input class="checkButton" type="button" value="Uncheck All" onclick="checkAll(this.form,'<?php 
        echo $menuKey;
        ?>
',false);">
      </dt>
<?php 
        foreach ($pageList as $pageKey => $page) {
            ?>
      <dd><label><?php 
            echo zen_draw_checkbox_field('p[]', htmlspecialchars($pageKey, ENT_COMPAT, CHARSET, TRUE), isset($_POST['p']) && in_array($pageKey, $_POST['p']), '', ' class="' . $menuKey . '"');
            echo zen_output_string($page['name'], false, true);
            ?>
</label></dd>
<?php 
        }
        ?>
    </dl>
<?php 
    }
    ?>
    <div class="formButtons">
      <?php 
    echo zen_image_submit('button_save.gif', IMAGE_SAVE);
    ?>
      <a href="<?php 
    echo zen_href_link(FILENAME_PROFILES);
开发者ID:kirkbauer2,项目名称:kirkzc,代码行数:31,代码来源:profiles.php

示例12: zen_draw_pull_down_menu

function zen_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false, $blank = false)
{
    $field = '<select class="form-control" name="' . zen_output_string($name) . '"';
    if (zen_not_null($parameters)) {
        $field .= ' ' . $parameters;
    }
    $field .= '>';
    if ($blank) {
        $field .= '<option value=""></option>';
    }
    if (empty($default) && isset($GLOBALS[$name]) && is_string($GLOBALS[$name])) {
        $default = stripslashes($GLOBALS[$name]);
    }
    foreach (array_keys($values) as $i) {
        $field .= '<option value="' . zen_output_string($values[$i]['id']) . '"';
        if ($default == $values[$i]['id']) {
            $field .= ' selected="selected"';
        }
        $field .= '>' . zen_output_string($values[$i]['text'], array('"' => '&quot;', '\'' => '&#039;', '<' => '&lt;', '>' => '&gt;')) . '</option>';
    }
    $field .= '</select>';
    if ($required == true) {
        $field .= TEXT_FIELD_REQUIRED;
    }
    return $field;
}
开发者ID:bitweaver,项目名称:commerce,代码行数:26,代码来源:common_inc.php

示例13: zen_href_link

    <input type="submit" name="submit" class="button" value="Login" id="btn_submit"/>
    <input type="hidden" name="action" value="do<?php echo $_SESSION['securityToken']; ?>" id="action1"/>
    <img id="actionImg" src = "images/loading.gif" class="hiddenField" />
    <br /><a style="float: right;" href="<?php echo zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL');?>"><?php echo TEXT_PASSWORD_FORGOTTEN; ?></a>
  </fieldset>
</form>
<div id="loginExpiryPolicy"><?php echo LOGIN_EXPIRY_NOTICE; ?></div>
</body>
<?php } else { ?>
<body id="login" onload="document.getElementById('old_pwd').focus()">
<form id="loginForm" name="loginForm" action="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>" method="post" onsubmit="animate(this)">
  <fieldset>
    <legend><?php echo HEADING_TITLE_EXPIRED; ?></legend>
    <p class="messageStackError"><?php echo $message; ?></p>
    <label class="loginLabel" for="admin_name-<?php echo $_SESSION['securityToken']; ?>"><?php echo TEXT_ADMIN_NAME; ?></label>
    <input style="float: left" type="text" id="admin_name" name="admin_name-<?php echo $_SESSION['securityToken']; ?>" value="<?php echo zen_output_string($admin_name); ?>" autocomplete="off"/>
    <br class="clearBoth" />
    <label class="loginLabel" for="oldpwd-<?php echo $_SESSION['securityToken']; ?>"><?php echo TEXT_ADMIN_OLD_PASSWORD; ?></label>
    <input style="float: left" type="password" id="old_pwd" name="oldpwd-<?php echo $_SESSION['securityToken']; ?>" autocomplete="off" />
    <br class="clearBoth" />
    <label  class="loginLabel" for="newpwd-<?php echo $_SESSION['securityToken']; ?>"><?php echo TEXT_ADMIN_NEW_PASSWORD; ?></label>
    <input style="float: left" type="password" id="admin_pass" name="newpwd-<?php echo $_SESSION['securityToken']; ?>" autocomplete="off" />
    <br class="clearBoth" />
    <label  class="loginLabel" for="confpwd"-<?php echo $_SESSION['securityToken']; ?>><?php echo TEXT_ADMIN_CONFIRM_PASSWORD; ?></label>
    <input style="float: left" type="password" id="admin_pass2" name="confpwd-<?php echo $_SESSION['securityToken']; ?>" autocomplete="off" />
    <br class="clearBoth" />
    <input type="hidden" name="securityToken" value="<?php echo $_SESSION['securityToken']; ?>">
    <input type="submit" name="submit" class="button" value="Submit" id="btn_submit" />
    <input type="hidden" name="action" value="rs<?php echo $_SESSION['securityToken']; ?>" id="action1"/>
    <img id="actionImg" src = "images/loading.gif" class="hiddenField" />
  </fieldset>
开发者ID:quangn92,项目名称:visualyou,代码行数:31,代码来源:login.php

示例14: floor

if ($num_images) {
    $row = 0;
    $col = 0;
    if ($num_images < IMAGES_AUTO_ADDED || IMAGES_AUTO_ADDED == 0) {
        $col_width = floor(100 / $num_images);
    } else {
        $col_width = floor(100 / IMAGES_AUTO_ADDED);
    }
    for ($i = 0, $n = $num_images; $i < $n; $i++) {
        $file = $images_array[$i];
        $products_image_large = str_replace(DIR_WS_IMAGES, DIR_WS_IMAGES . 'large/', $products_image_directory) . str_replace($products_image_extension, '', $file) . IMAGE_SUFFIX_LARGE . $products_image_extension;
        //  Begin Image Handler changes 1 of 2
        if (function_exists('handle_image')) {
            $newimg = handle_image($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, '');
            list($src, $alt, $width, $height, $parameters) = $newimg;
            $products_image_large = zen_output_string($src);
        }
        $flag_has_large = file_exists($products_image_large);
        //  End Image Handler changes 1 of 2
        $products_image_large = $flag_has_large ? $products_image_large : $products_image_directory . $file;
        $flag_display_large = IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE == 'Yes' || $flag_has_large;
        $base_image = $products_image_directory . $file;
        $thumb_slashes = zen_image(addslashes($base_image), addslashes($products_name), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
        //  Begin Image Handler changes 2 of 2
        //  remove additional single quotes from image attributes (important!)
        $thumb_slashes = preg_replace("/([^\\\\])'/", '$1\\\'', $thumb_slashes);
        //  End Image Handler changes 2 of 2
        $thumb_regular = zen_image($base_image, $products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
        $large_link = zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large);
        // Link Preparation:
        $script_link = '<script type="text/javascript"><!--' . "\n" . 'document.write(\'' . ($flag_display_large ? '<a href="javascript:popupWindow(\\\'' . str_replace($products_image_large, urlencode(addslashes($products_image_large)), $large_link) . '\\\')">' . $thumb_slashes . '<br />' . TEXT_CLICK_TO_ENLARGE . '</a>' : $thumb_slashes) . '\');' . "\n" . '//--></script>';
开发者ID:jazzman346,项目名称:zen_Image-Handler,代码行数:31,代码来源:additional_images.php

示例15: drawSelectFiled

 /**
  * 生产一个slelect的下拉框
  *
  * @param unknown_type $name
  * @param unknown_type $values
  * @param unknown_type $default
  * @param unknown_type $parameters
  * @return string
  */
 public static function drawSelectFiled($name, $values, $default, $parameters = '')
 {
     $field = '<select name="' . zen_output_string($name) . '"';
     if (!empty($parameters)) {
         $field .= ' ' . $parameters;
     }
     $field .= '>' . "\n";
     for ($i = 0, $n = sizeof($values); $i < $n; $i++) {
         $field .= '  <option value="' . self::outputString($values[$i]['id']) . '"';
         if ($default == $values[$i]['id']) {
             $field .= ' selected="selected"';
         }
         $field .= '>' . self::outputString($values[$i]['text'], array('"' => '&quot;', '&' => '&', '\'' => '&#039;', '<' => '&lt;', '>' => '&gt;')) . '</option>' . "\n";
     }
     $field .= '</select>' . "\n";
     return $field;
 }
开发者ID:wuyuanyuan1012,项目名称:zc,代码行数:26,代码来源:class.ZcHtmlHelper.php


注:本文中的zen_output_string函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。