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


PHP zen_draw_radio_field函数代码示例

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


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

示例1: _draw_stocked_attributes

 function _draw_stocked_attributes()
 {
     global $languages_id;
     $out = '';
     $attributes = $this->_build_attributes_array(true, false);
     if (sizeof($attributes) > 0) {
         $combinations = array();
         $selected_combination = 0;
         $this->_build_attributes_combinations($attributes, $this->show_out_of_stock == 'True', $this->mark_out_of_stock, $combinations, $selected_combination);
         $combname = '';
         foreach ($attributes as $attrib) {
             $combname .= ', ' . $attrib['oname'];
         }
         $combname = substr($combname, 2) . ':';
         for ($i = 0; $i < sizeof($combinations); $i++) {
             if (isset($_GET['products_id']) && $_SESSION['cart']->contents[$_GET['products_id']]) {
                 if ($combinations[$i]['comb'] == $_SESSION['cart']->contents[$_GET['products_id']]['attributes']) {
                     $selected_combination = $i;
                     break;
                 }
             }
         }
         foreach ($combinations as $combindex => $comb) {
             $out .= "<tr>\n";
             $out .= '  <td align="right" class=main><b>' . $combname . "</b></td>\n  <td class=main>";
             $out .= zen_draw_radio_field('attrcomb', $combinations[$combindex]['id'], $combindex == $selected_combination) . $comb['text'];
             $out .= "</td>\n";
             $out .= "</tr>\n";
             $combname = '';
         }
     }
     $out .= $this->_draw_out_of_stock_message_js($attributes);
     return $out;
 }
开发者ID:badarac,项目名称:stock_by_attribute_1.5.4,代码行数:34,代码来源:pad_single_radioset.php

示例2: zen_draw_radio_field

    echo HEADING_REPORT_TYPE;
    ?>
</td>
            <td width="50">&nbsp;</td>
            </td>
          </tr>
          <tr>
            <td class="main">
              <?php 
    echo zen_draw_radio_field('report_type', 'out_po') . OUT_PO . '<br />';
    ?>
              <?php 
    echo zen_draw_radio_field('report_type', 'out_payment') . OUT_PAYMENTS . '<br />';
    ?>
              <?php 
    echo zen_draw_radio_field('report_type', 'out_refund') . OUT_REFUNDS . '<br />';
    ?>
            </td>
            <td width="50">&nbsp;</td>
            <td class="smallText" valign="top"><?php 
    echo zen_draw_checkbox_field('within_limit', 1) . HEADING_WITHIN_LIMIT;
    ?>
</td>
          </tr>
          <tr>
            <td class="main" align="right" colspan="3"><input class="submit_button button" type="submit" value="<?php 
    echo BUTTON_SEARCH;
    ?>
"></td>
            <?php 
    if ($report_type) {
开发者ID:retched,项目名称:zen_SuperOrders,代码行数:31,代码来源:super_report_await_pay.php

示例3: zen_draw_separator

echo zen_draw_separator('pixel_trans.gif', '24', '15');
?>
</td>
                <td class="main" valign="top"><?php 
echo TEXT_IMAGES_DELETE . ' ' . zen_draw_radio_field('image_delete', '0', $off_image_delete) . '&nbsp;' . TABLE_HEADING_NO . ' ' . zen_draw_radio_field('image_delete', '1', $on_image_delete) . '&nbsp;' . TABLE_HEADING_YES;
?>
</td>
	  	    	  </tr>

              <tr>
                <td class="main"><?php 
echo zen_draw_separator('pixel_trans.gif', '24', '15');
?>
</td>
                <td colspan="3" class="main" valign="top"><?php 
echo TEXT_IMAGES_OVERWRITE . ' ' . zen_draw_radio_field('overwrite', '0', $off_overwrite) . '&nbsp;' . TABLE_HEADING_NO . ' ' . zen_draw_radio_field('overwrite', '1', $on_overwrite) . '&nbsp;' . TABLE_HEADING_YES;
?>
                  <?php 
echo '<br />' . TEXT_PRODUCTS_IMAGE_MANUAL . '&nbsp;' . zen_draw_input_field('products_image_manual');
?>
</td>
              </tr>
            </table></td>
          </tr>

          <tr>
            <td colspan="2"><?php 
echo zen_draw_separator('pixel_black.gif', '100%', '3');
?>
</td>
          </tr>
开发者ID:kirkbauer2,项目名称:kirkzc,代码行数:31,代码来源:collect_info.php

示例4: zen_draw_input_field

echo TEXT_PRODUCTS_QUANTITY_UNITS_RETAIL;
?>
</td>
						<td class="main"><?php 
echo zen_draw_input_field('products_quantity_order_units', $pInfo->products_quantity_order_units == 0 ? 1 : $pInfo->products_quantity_order_units);
?>
</td>
					</tr>

					<tr>
						<td class="main"><?php 
echo TEXT_PRODUCTS_MIXED;
?>
</td>
						<td class="main"><?php 
echo zen_draw_radio_field('products_quantity_mixed', '1', $in_products_quantity_mixed) . '&nbsp;' . 'Yes' . '&nbsp;&nbsp;' . zen_draw_radio_field('products_quantity_mixed', '0', $out_products_quantity_mixed) . '&nbsp;' . 'No';
?>
</td>
					</tr>

					<tr>
						<td colspan="2"><?php 
echo zen_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
					</tr>

<script type="text/javascript"><!--
updateGross();
//--></script>
<?php 
开发者ID:bitweaver,项目名称:commerce,代码行数:31,代码来源:collect_info.php

示例5: zen_draw_radio_field

echo TEXT_PRODUCTS_METATAGS_TITLE_STATUS . '<br />' . zen_draw_radio_field('metatags_title_status', '1', $is_metatags_title_status) . '&nbsp;' . TEXT_YES . '&nbsp;' . zen_draw_radio_field('metatags_title_status', '0', $not_metatags_title_status) . '&nbsp;' . TEXT_NO;
?>
              </td>
              <td class="main" align="center">
                <?php 
echo TEXT_PRODUCTS_METATAGS_MODEL_STATUS . '<br />' . zen_draw_radio_field('metatags_model_status', '1', $is_metatags_model_status) . '&nbsp;' . TEXT_YES . '&nbsp;' . zen_draw_radio_field('metatags_model_status', '0', $not_metatags_model_status) . '&nbsp;' . TEXT_NO;
?>
              </td>
              <td class="main" align="center">
                <?php 
echo TEXT_PRODUCTS_METATAGS_PRICE_STATUS . '<br />' . zen_draw_radio_field('metatags_price_status', '1', $is_metatags_price_status) . '&nbsp;' . TEXT_YES . '&nbsp;' . zen_draw_radio_field('metatags_price_status', '0', $not_metatags_price_status) . '&nbsp;' . TEXT_NO;
?>
              </td>
              <td class="main" align="center">
                <?php 
echo TEXT_PRODUCTS_METATAGS_TITLE_TAGLINE_STATUS . '<br />' . zen_draw_radio_field('metatags_title_tagline_status', '1', $is_metatags_title_tagline_status) . '&nbsp;' . TEXT_YES . '&nbsp;' . zen_draw_radio_field('metatags_title_tagline_status', '0', $not_metatags_title_tagline_status) . '&nbsp;' . TEXT_NO;
?>
              </td>
            </tr>
          </table>
        </td>
      </tr>
<?php 
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
    ?>
      <tr>
        <td><table border="3" cellspacing="4" cellpadding="6">
          <tr>
            <td class="main" colspan="2">
              <?php 
    echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . '<strong>' . TEXT_PRODUCTS_NAME . '</strong>' . '&nbsp;' . zen_get_products_name($_GET['pID'], $languages[$i]['id']) . '&nbsp;&nbsp;&nbsp;<strong>' . TEXT_PRODUCTS_MODEL . '</strong>&nbsp;' . $pInfo->products_model . '&nbsp;&nbsp;&nbsp;<strong>' . TEXT_PRODUCTS_PRICE_INFO . '</strong>&nbsp;' . $currencies->format($pInfo->products_price_sorter);
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:collect_info_metatags.php

示例6: echo_shipping_address_form

    /** Echoes out a complete address form, returns nothing.
     *
     * You are required to manually put the `form-horizontal` class in the
     * surrounding `<form>` element.
     */
    public static function echo_shipping_address_form()
    {
        global $entry, $zone_name, $zone_id, $flag_show_pulldown_states, $selected_country;
        ?>
    <p class="text-danger"><strong><?php 
        echo FORM_REQUIRED_INFORMATION;
        ?>
</strong></p>
    <?php 
        if (ACCOUNT_GENDER == 'true') {
            $male = (isset($gender) ? $gender : $entry->fields['entry_gender']) == 'male';
            echo '<label class="radio-inline">' . zen_draw_radio_field('gender', 'm', $male, 'id="gender-male"') . MALE . '</label>' . '<label class="radio-inline">' . zen_draw_radio_field('gender', 'f', !$male, 'id="gender-female"') . FEMALE . '</label>' . self::required_text(ENTRY_GENDER_TEXT);
        }
        ?>

    <div class='form-group'>
    <label class="control-label col-sm-4" for="firstname"><?php 
        echo self::required_text(ENTRY_FIRST_NAME_TEXT) . ENTRY_FIRST_NAME;
        ?>
</label>
    <div class='col-sm-8'>
      <?php 
        echo zen_draw_input_field('firstname', $entry->fields['entry_firstname'], zen_set_field_length(TABLE_CUSTOMERS, 'customers_firstname', '40') . ' class="form-control" id="firstname"');
        ?>
    </div>
    </div>

    <div class='form-group'>
    <label class="control-label col-sm-4" for="lastname"><?php 
        echo self::required_text(ENTRY_LAST_NAME_TEXT) . ENTRY_LAST_NAME;
        ?>
</label>
    <div class='col-sm-8'>
    <?php 
        echo zen_draw_input_field('lastname', $entry->fields['entry_lastname'], zen_set_field_length(TABLE_CUSTOMERS, 'customers_lastname', '40') . ' class="form-control" id="lastname"');
        ?>
    </div>
    </div>

    <?php 
        if (ACCOUNT_COMPANY == 'true') {
            ?>
      <div class='form-group'>
      <label class="control-label col-sm-4" for="lastname"><?php 
            echo self::required_text(ENTRY_COMPANY_TEXT) . ENTRY_COMPANY;
            ?>
</label>
      <div class='col-sm-8'>
      <?php 
            echo zen_draw_input_field('company', $entry->fields['entry_company'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' class="form-control" id="company"');
            ?>
      </div>
      </div>
    <?php 
        }
        ?>

    <div class='form-group'>
    <label class="control-label col-sm-4" for="street-address"><?php 
        echo self::required_text(ENTRY_STREET_ADDRESS_TEXT) . ENTRY_STREET_ADDRESS;
        ?>
</label>
    <div class='col-sm-8'>
    <?php 
        echo zen_draw_input_field('street_address', $entry->fields['entry_street_address'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_street_address', '40') . ' class="form-control" id="street-address"');
        ?>
    </div>
    </div>

    <?php 
        if (ACCOUNT_SUBURB == 'true') {
            ?>
    <div class='form-group'>
    <label class="control-label col-sm-4" for="suburb"><?php 
            echo self::required_text(ENTRY_SUBURB_TEXT) . ENTRY_SUBURB;
            ?>
</label>
    <div class='col-sm-8'>
    <?php 
            echo zen_draw_input_field('suburb', $entry->fields['entry_suburb'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_suburb', '40') . ' class="form-control" id="suburb"');
            ?>
    </div>
    </div>
    <?php 
        }
        ?>

    <div class='form-group'>
    <label class="control-label col-sm-4" for="city"><?php 
        echo self::required_text(ENTRY_CITY_TEXT) . ENTRY_CITY;
        ?>
</label>
    <div class='col-sm-8'>
    <?php 
        echo zen_draw_input_field('city', $entry->fields['entry_city'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_city', '40') . ' class="form-control" id="city"');
//.........这里部分代码省略.........
开发者ID:Southern-Exposure-Seed-Exchange,项目名称:Zencart-Bootstrap-Theme,代码行数:101,代码来源:sese_bootstrap_forms.php

示例7: zen_draw_input_field

                <?php 
    echo TABLE_HEADING_CHAPTER_PREV_NEXT;
    ?>
</strong>
                <?php 
    echo zen_draw_input_field('toc_chapter', $ezInfo->toc_chapter, zen_set_field_length(TABLE_EZPAGES, 'toc_chapter', '6'), false);
    ?>
                </td>

                <td class="main" align="left" valign="top"><strong>
                <?php 
    echo TABLE_HEADING_STATUS_TOC;
    ?>
</strong><br />
                  <?php 
    echo zen_draw_radio_field('status_toc', '1', $is_status_toc) . '&nbsp;' . TEXT_YES . '<br />' . zen_draw_radio_field('status_toc', '0', $not_status_toc) . '&nbsp;' . TEXT_NO;
    ?>
                </td>
                <td class="main" align="center" valign="bottom">
                  <?php 
    echo TEXT_TOC_SORT_ORDER;
    ?>
<br />
                  <?php 
    echo zen_draw_input_field('toc_sort_order', $ezInfo->toc_sort_order, zen_set_field_length(TABLE_EZPAGES, 'toc_sort_order'), false);
    ?>
                </td>

              </tr>
            </table></td>
          </tr>
开发者ID:dalinhuang,项目名称:yijinhuanxiang,代码行数:31,代码来源:ezpages.php

示例8: zen_draw_separator

          <tr>
            <td class="main" colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td class="main"><?php echo TEXT_PRODUCTS_IMAGE; ?></td>
                <td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . zen_draw_file_field('products_image') . '&nbsp;' . ($pInfo->products_image !='' ? TEXT_IMAGE_CURRENT . $pInfo->products_image : TEXT_IMAGE_CURRENT . '&nbsp;' . NONE) . zen_draw_hidden_field('products_previous_image', $pInfo->products_image); ?></td>
                <td valign = "center" class="main"><?php echo TEXT_PRODUCTS_IMAGE_DIR; ?>&nbsp;<?php echo zen_draw_pull_down_menu('img_dir', $dir_info, $default_directory); ?></td>
						  </tr>
              <tr>
                <td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15'); ?></td>
                <td class="main" valign="top"><?php echo TEXT_IMAGES_DELETE . ' ' . zen_draw_radio_field('image_delete', '0', $off_image_delete) . '&nbsp;' . TABLE_HEADING_NO . ' ' . zen_draw_radio_field('image_delete', '1', $on_image_delete) . '&nbsp;' . TABLE_HEADING_YES; ?></td>
	  	    	  </tr>

              <tr>
                <td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15'); ?></td>
                <td colspan="3" class="main" valign="top"><?php echo TEXT_IMAGES_OVERWRITE  . ' ' . zen_draw_radio_field('overwrite', '0', $off_overwrite) . '&nbsp;' . TABLE_HEADING_NO . ' ' . zen_draw_radio_field('overwrite', '1', $on_overwrite) . '&nbsp;' . TABLE_HEADING_YES; ?>
                  <?php echo '<br />' . TEXT_PRODUCTS_IMAGE_MANUAL . '&nbsp;' . zen_draw_input_field('products_image_manual'); ?></td>
              </tr>
            </table></td>
          </tr>

          <tr>
            <td colspan="2"><?php echo zen_draw_separator('pixel_black.gif', '100%', '3'); ?></td>
          </tr>
          
          <!--BOF Products Family -->
          <tr>
            <td class="main"><?php echo TEXT_PRODUCTS_FAMILY;?></td>
            <td class="main"><?php echo zen_draw_input_field('products_family', $pInfo->products_family, 'id="products_family"');?></td>
          </tr>
           <tr>
开发者ID:quangn92,项目名称:visualyou,代码行数:30,代码来源:collect_info.php

示例9: zen_draw_radio_field

</h4>
	<div class="alert-text forward"><?php 
echo FORM_REQUIRED_INFORMATION;
?>
</div>
	<?php 
if (ACCOUNT_GENDER == 'true') {
    if (isset($gender)) {
        $male = $gender == 'm' ? true : false;
    } else {
        $male = $entry->fields['entry_gender'] == 'm' ? true : false;
    }
    $female = !$male;
    ?>
	<?php 
    echo zen_draw_radio_field('gender', 'm', $male, 'id="gender-male"') . '<label class="radioButtonLabel" for="gender-male">' . MALE . '</label>' . zen_draw_radio_field('gender', 'f', $female, 'id="gender-female"') . '<label class="radioButtonLabel" for="gender-female">' . FEMALE . '</label>' . (zen_not_null(ENTRY_GENDER_TEXT) ? '<span class="alert-text">' . ENTRY_GENDER_TEXT . '</span>' : '');
    ?>
	<br class="clearBoth" />
	<?php 
}
?>
	<label class="inputLabel" for="firstname">
		<?php 
echo ENTRY_FIRST_NAME;
?>
		<?php 
echo zen_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="alert-text">' . ENTRY_FIRST_NAME_TEXT . '</span>' : '';
?>
    </label>
	<?php 
echo zen_draw_input_field('firstname', $entry->fields['entry_firstname'], zen_set_field_length(TABLE_CUSTOMERS, 'customers_firstname', '40') . ' id="firstname"');
开发者ID:quangn92,项目名称:visualyou,代码行数:31,代码来源:tpl_modules_address_book_details.php

示例10: array

         $contents[] = array('text' => TEXT_INFO_BOX_NAME . ' <strong>' . $box_names[$bInfo->block] . '</strong> (' . $bInfo->block . ')');
         $contents[] = array('text' => TEXT_INFO_BOX_STATUS . ' ' . ($bInfo->status == '1' ? TEXT_ON : TEXT_OFF));
         $contents[] = array('text' => '<br />' . TEXT_INFO_BOX_LOCATION . '<br />' . zen_draw_pull_down_menu('location', $location_options, $bInfo->location));
         $contents[] = array('text' => '<br />' . TEXT_INFO_BOX_SORT_ORDER . '<br />' . zen_draw_pull_down_menu('sort_order', $sort_order_options, $bInfo->sort_order));
         $contents[] = array('text' => '<br />' . TEXT_INFO_BOX_VISIBLE . '<br /><label for="visible-1">' . zen_draw_radio_field('visible', '1', $in_visible, '', 'id="visible-1"') . TEXT_VISIBLE_PAGES . '</label><br /><label for="visible-0">' . zen_draw_radio_field('visible', '0', $out_visible, '', 'id="visible-0"') . TEXT_INVISIBLE_PAGES . '</label>');
         $contents[] = array('text' => '<br />' . TEXT_INFO_BOX_PAGES . ' ' . $pages_inputs_string);
     } else {
         $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_BLOCK . '</b>');
         $contents = array('form' => zen_draw_form('block_layouts', FILENAME_BLOCKS, 'page=' . $_GET['page'] . '&bID=' . $bInfo->id . '&action=save' . '&block=' . $bInfo->block));
         $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
         $contents[] = array('text' => TEXT_INFO_MODULE_NAME . ' ' . $bInfo->module);
         $contents[] = array('text' => TEXT_INFO_BLOCK_NAME . ' <strong>' . $block_names[$bInfo->module . '#' . $bInfo->block] . '</strong> (' . $bInfo->block . ')');
         $contents[] = array('text' => TEXT_INFO_BLOCK_STATUS . ' ' . ($bInfo->status == '1' ? TEXT_ON : TEXT_OFF));
         $contents[] = array('text' => '<br />' . TEXT_INFO_BLOCK_LOCATION . '<br />' . zen_draw_pull_down_menu('location', $location_options, $bInfo->location));
         $contents[] = array('text' => '<br />' . TEXT_INFO_BLOCK_SORT_ORDER . '<br />' . zen_draw_pull_down_menu('sort_order', $sort_order_options, $bInfo->sort_order));
         $contents[] = array('text' => '<br />' . TEXT_INFO_BLOCK_VISIBLE . '<br /><label for="visible-1">' . zen_draw_radio_field('visible', '1', $in_visible, '', 'id="visible-1"') . TEXT_VISIBLE_PAGES . '</label><br /><label for="visible-0">' . zen_draw_radio_field('visible', '0', $out_visible, '', 'id="visible-0"') . TEXT_INVISIBLE_PAGES . '</label>');
         $contents[] = array('text' => '<br />' . TEXT_INFO_BOX_PAGES . ' ' . $pages_inputs_string);
     }
     $contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . zen_href_link(FILENAME_BLOCKS, 'page=' . $_GET['page'] . '&bID=' . $bInfo->id . '&block=' . $bInfo->block) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     if ($bInfo->module == 'sideboxes') {
         $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_BOX . '</b>');
         $contents = array('form' => zen_draw_form('block_layouts', FILENAME_BLOCKS, 'page=' . $_GET['page'] . '&bID=' . $bInfo->id . '&action=deleteconfirm' . '&block=' . $bInfo->block));
         $contents[] = array('text' => TEXT_INFO_DELETE_BOX_INTRO);
         $contents[] = array('text' => '<br /><b>' . $bInfo->block . '</b>');
     } else {
         $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_BLOCK . '</b>');
         $contents = array('form' => zen_draw_form('block_layouts', FILENAME_BLOCKS, 'page=' . $_GET['page'] . '&bID=' . $bInfo->id . '&action=deleteconfirm' . '&block=' . $bInfo->block));
         $contents[] = array('text' => TEXT_INFO_DELETE_BLOCK_INTRO);
         $contents[] = array('text' => '<br /><b>' . $bInfo->module . '#' . $bInfo->block . '</b>');
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:blocks.php

示例11: zen_draw_hidden_field

      <tr>
        <td class="main"><?php 
    echo ENTRY_EMAIL_PREFERENCE;
    ?>
</td>
        <td class="main">
<?php 
    if ($processed == true) {
        if ($cInfo->customers_email_format) {
            echo $customers_email_format . zen_draw_hidden_field('customers_email_format');
        }
    } else {
        $email_pref_text = $cInfo->customers_email_format == 'TEXT' ? true : false;
        $email_pref_html = !$email_pref_text;
        echo zen_draw_radio_field('customers_email_format', 'HTML', $email_pref_html) . '&nbsp;' . ENTRY_EMAIL_HTML_DISPLAY . '&nbsp;&nbsp;&nbsp;' . zen_draw_radio_field('customers_email_format', 'TEXT', $email_pref_text) . '&nbsp;' . ENTRY_EMAIL_TEXT_DISPLAY;
    }
    ?>
</td>
      </tr>
          <tr>
            <td class="main"><?php 
    echo ENTRY_NEWSLETTER;
    ?>
</td>
            <td class="main">
<?php 
    if ($processed == true) {
        if ($cInfo->customers_newsletter == '1') {
            echo ENTRY_NEWSLETTER_YES;
        } else {
开发者ID:kirkbauer2,项目名称:kirkzc,代码行数:30,代码来源:customers.php

示例12: zen_draw_radio_field

        ?>
<p class="important"><?php 
        echo TEXT_NO_PAYMENT_OPTIONS_AVAILABLE;
        ?>
</p>

<?php 
    }
    ?>

<?php 
    $radio_buttons = 0;
    for ($i = 0, $n = sizeof($selection); $i < $n; $i++) {
        if (sizeof($selection) > 1) {
            if (empty($selection[$i]['noradio'])) {
                echo zen_draw_radio_field('payment', $selection[$i]['id'], $selection[$i]['id'] == $_SESSION['payment'] ? true : false, 'id="pmt-' . $selection[$i]['id'] . '"');
            }
        } else {
            echo zen_draw_hidden_field('payment', $selection[$i]['id']);
        }
        ?>
<label for="pmt-<?php 
        echo $selection[$i]['id'];
        ?>
" class="radioButtonLabel"><?php 
        echo $selection[$i]['module'];
        ?>
</label>

<?php 
        if (defined('MODULE_ORDER_TOTAL_COD_STATUS') && MODULE_ORDER_TOTAL_COD_STATUS == 'true' and $selection[$i]['id'] == 'cod') {
开发者ID:happyxlq,项目名称:lt_svn,代码行数:31,代码来源:tpl_checkout_payment_default.php

示例13: array

             }
         }
         $contents[] = array('text' => '<br /><strong>' . TEXT_INFO_BASE_DIR . '</strong><br />' . TEXT_INFO_NEW_DIR);
         $contents[] = array('text' => TEXT_INFO_IMAGE_DIR . zen_draw_pull_down_menu('imgBaseDir', $dir_info, ""));
         $contents[] = array('text' => TEXT_INFO_OR . ' ' . zen_draw_input_field('imgNewBaseDir', '', 20));
     } else {
         if ($action != 'layout_edit') {
             $contents[] = array('text' => '<strong>' . TEXT_INFO_IMAGE_SUFFIX . '</strong><br />' . TEXT_INFO_USE_AUTO_SUFFIX . '<br />');
             $contents[] = array('text' => zen_draw_input_field('imgSuffix', $selected_image_suffix, 10));
         }
     }
     // Image fields
     $contents[] = array('text' => '<br /><strong>' . TEXT_INFO_DEFAULT_IMAGE . '</strong><br />' . TEXT_INFO_DEFAULT_IMAGE_HELP . '<br />' . zen_draw_input_field('default_image', '', ' size="20" ', false, 'file') . '<br />' . $ptInfo->default_image);
     if ($action == 'layout_edit') {
         if ($selected_image_name == $products_image_match_array[0]) {
             $contents[] = array('text' => zen_draw_radio_field('imgNaming', 'new_discard', true) . IH_NEW_NAME_DISCARD_IMAGES . '<br />' . zen_draw_radio_field('imgNaming', 'keep_name', false) . IH_KEEP_NAME);
         }
     }
     $contents[] = array('text' => '<br /><strong>' . 'Medium image file (optional)' . '</strong><br />' . zen_draw_input_field('medium_image', '', ' size="20" ', false, 'file') . '<br />' . $ptInfo->medium_image);
     $contents[] = array('text' => '<br /><strong>' . 'Large image file (optional)' . '</strong><br />' . zen_draw_input_field('large_image', '', ' size="20" ', false, 'file') . '<br />' . $ptInfo->large_image);
     $contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_save.gif', IMAGE_SAVE));
     break;
 case 'layout_delete':
     $imgStr = "&imgBase=" . $products_image_base . "&imgSuffix=" . $selected_image_suffix . "&imgBaseDir=" . $products_image_directory . "&imgExtension=" . $selected_image_extension;
     // show new button
     $heading[] = array('text' => '<strong>' . TEXT_INFO_CONFIRM_DELETE . '</strong>');
     $contents[] = array('text' => '<br />' . $products_image_directory . $products_image_base . $selected_image_suffix . $selected_image_extension);
     $contents[] = array('text' => '<br />' . TEXT_INFO_CONFIRM_DELETE_SURE);
     if ($selected_image_suffix == '') {
         $contents[] = array('text' => zen_draw_checkbox_field('delete_from_database_only', 'Y', false) . IH_DELETE_FROM_DB_ONLY);
     }
开发者ID:dalinhuang,项目名称:cameras,代码行数:31,代码来源:image_handler.php

示例14: switch

            switch ($demo_status) {
                case '0':
                    $on_status = false;
                    $off_status = true;
                    break;
                case '1':
                    $on_status = true;
                    $off_status = false;
                    break;
                default:
                    $on_status = false;
                    $off_status = true;
                    break;
            }
            $contents[] = array('text' => '<br>' . TEXT_ADMIN_DEMO);
            $contents[] = array('text' => '<strong>' . TEXT_DEMO_STATUS . '</strong><br>' . zen_draw_radio_field('demo_status', '1', $on_status) . '&nbsp;' . TEXT_DEMO_ON . '&nbsp;' . zen_draw_radio_field('demo_status', '0', $off_status) . '&nbsp;' . TEXT_DEMO_OFF);
        }
        $contents[] = array('align' => 'center', 'text' => '
<br>
' . zen_image_submit('button_save.gif', IMAGE_SAVE) . '
<a href="' . zen_href_link(FILENAME_ADMIN, 'page=' . $_GET['page'] . '&adminID=' . $adminInfo->admin_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>
');
        break;
        // ----------------------------------------------------------------------------------------------------------------------------------------------------------------
        // ----------------------------------------------------------------------------------------------------------------------------------------------------------------
    // ----------------------------------------------------------------------------------------------------------------------------------------------------------------
    // ----------------------------------------------------------------------------------------------------------------------------------------------------------------
    case 'resetpassword':
        // ----------------------------------------------------------------------------------------------------------------------------------------------------------------
        $heading[] = array('text' => '<b>' . TEXT_HEADING_RESET_PASSWORD . '</b>');
        $contents = array('form' => zen_draw_form('reset_password', FILENAME_ADMIN, 'page=' . $_GET['page'] . '&adminID=' . $adminInfo->admin_id . '&action=reset', 'post', 'enctype="multipart/form-data"') . zen_draw_hidden_field('admin_name', $adminInfo->admin_name) . zen_draw_hidden_field('admin_email', $adminInfo->admin_email) . zen_draw_hidden_field('admin_level', $adminInfo->admin_level));
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:admin.php

示例15: zen_draw_radio_field

            // Dual Pricing end
            $discounts_qty->MoveNext();
        }
        ?>

<?php 
        if ($discounts_qty->RecordCount() > 0) {
            ?>

          <tr>
// Dual Pricing start
            <td colspan="8" class="main" valign="top"><?php 
            echo TEXT_PRODUCTS_MIXED_DISCOUNT_QUANTITY;
            ?>
&nbsp;&nbsp;<?php 
            echo zen_draw_radio_field('products_mixed_discount_quantity', '1', $in_products_mixed_discount_quantity == 1) . '&nbsp;' . TEXT_YES . '&nbsp;&nbsp;' . zen_draw_radio_field('products_mixed_discount_quantity', '0', $out_products_mixed_discount_quantity) . '&nbsp;' . TEXT_NO;
            ?>
</td>
          </tr>
          <tr>
            <td colspan="8" class="main" align="center">
// Dual Pricing end
              <?php 
            if ($action != '') {
                echo TEXT_ADD_ADDITIONAL_DISCOUNT . '<br />';
                echo '<a href="' . zen_href_link(FILENAME_PRODUCTS_PRICE_MANAGER, 'products_filter=' . $products_filter . '&current_category_id=' . $current_category_id . '&action=add_discount_qty_id') . '">' . zen_image_button('button_blank_discounts.gif', IMAGE_ADD_BLANK_DISCOUNTS) . '</a>' . '<br />';
                echo TEXT_BLANKS_INFO;
            } else {
                echo $action == '' ? '<span class="alert">' . TEXT_INFO_PREVIEW_ONLY . '</span>' : '';
            }
            ?>
开发者ID:jeking928,项目名称:Dual-Pricing-2.1.6,代码行数:31,代码来源:products_price_manager.php


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