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


PHP smn_draw_pull_down_menu函数代码示例

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


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

示例1: choose_audience

    function choose_audience()
    {
        global $_GET, $languages_id, $store_id;
        $products_array = array();
        $products_query = smn_db_query("select pd.products_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.store_id = '" . $store_id . "' and pd.language_id = '" . $languages_id . "' and pd.products_id = p.products_id and p.products_status = '1' order by pd.products_name");
        while ($products = smn_db_fetch_array($products_query)) {
            $products_array[] = array('id' => $products['products_id'], 'text' => $products['products_name']);
        }
        $choose_audience_string = '<script language="javascript"><!--
function mover(move) {
  if (move == \'remove\') {
    for (x=0; x<(document.notifications.products.length); x++) {
      if (document.notifications.products.options[x].selected) {
        with(document.notifications.elements[\'chosen[]\']) {
          options[options.length] = new Option(document.notifications.products.options[x].text,document.notifications.products.options[x].value);
        }
        document.notifications.products.options[x] = null;
        x = -1;
      }
    }
  }
  if (move == \'add\') {
    for (x=0; x<(document.notifications.elements[\'chosen[]\'].length); x++) {
      if (document.notifications.elements[\'chosen[]\'].options[x].selected) {
        with(document.notifications.products) {
          options[options.length] = new Option(document.notifications.elements[\'chosen[]\'].options[x].text,document.notifications.elements[\'chosen[]\'].options[x].value);
        }
        document.notifications.elements[\'chosen[]\'].options[x] = null;
        x = -1;
      }
    }
  }
  return true;
}

function selectAll(FormName, SelectBox) {
  temp = "document." + FormName + ".elements[\'" + SelectBox + "\']";
  Source = eval(temp);

  for (x=0; x<(Source.length); x++) {
    Source.options[x].selected = "true";
  }

  if (x<1) {
    alert(\'' . JS_PLEASE_SELECT_PRODUCTS . '\');
    return false;
  } else {
    return true;
  }
}
//--></script>';
        $global_button = '<script language="javascript"><!--' . "\n" . 'document.write(\'<input type="button" value="' . BUTTON_GLOBAL . '" style="width: 8em;" onclick="document.location=\\\'' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm&global=true') . '\\\'">\');' . "\n" . '//--></script><noscript><a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm&global=true') . '">[ ' . BUTTON_GLOBAL . ' ]</a></noscript>';
        $cancel_button = '<script language="javascript"><!--' . "\n" . 'document.write(\'<input type="button" value="' . BUTTON_CANCEL . '" style="width: 8em;" onclick="document.location=\\\'' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '\\\'">\');' . "\n" . '//--></script><noscript><a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '">[ ' . BUTTON_CANCEL . ' ]</a></noscript>';
        $choose_audience_string .= '<form name="notifications" action="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm') . '" method="post" onSubmit="return selectAll(\'notifications\', \'chosen[]\')"><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n" . '  <tr>' . "\n" . '    <td align="center" class="main"><b>' . TEXT_PRODUCTS . '</b><br>' . smn_draw_pull_down_menu('products', $products_array, '', 'size="20" style="width: 20em;" multiple') . '</td>' . "\n" . '    <td align="center" class="main">&nbsp;<br>' . $global_button . '<br><br><br><input type="button" value="' . BUTTON_SELECT . '" style="width: 8em;" onClick="mover(\'remove\');"><br><br><input type="button" value="' . BUTTON_UNSELECT . '" style="width: 8em;" onClick="mover(\'add\');"><br><br><br><input type="submit" value="' . BUTTON_SUBMIT . '" style="width: 8em;"><br><br>' . $cancel_button . '</td>' . "\n" . '    <td align="center" class="main"><b>' . TEXT_SELECTED_PRODUCTS . '</b><br>' . smn_draw_pull_down_menu('chosen[]', array(), '', 'size="20" style="width: 20em;" multiple') . '</td>' . "\n" . '  </tr>' . "\n" . '</table></form>';
        return $choose_audience_string;
    }
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:56,代码来源:product_notification.php

示例2: selection

 function selection()
 {
     global $order;
     for ($i = 1; $i < 13; $i++) {
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     $today = getdate();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_OWNER, 'field' => smn_draw_input_field('ipayment_cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_NUMBER, 'field' => smn_draw_input_field('ipayment_cc_number')), array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_EXPIRES, 'field' => smn_draw_pull_down_menu('ipayment_cc_expires_month', $expires_month) . '&nbsp;' . smn_draw_pull_down_menu('ipayment_cc_expires_year', $expires_year)), array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_CHECKNUMBER, 'field' => smn_draw_input_field('ipayment_cc_checkcode', '', 'size="4" maxlength="3"') . '&nbsp;<small>' . MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION . '</small>')));
     return $selection;
 }
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:13,代码来源:ipayment.php

示例3: selection

 function selection()
 {
     global $order;
     // -- Generates an array containing the text names of each month of the year.
     for ($i = 1; $i < 13; $i++) {
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     // -- Generates an array containing this year and the next nine years.
     $today = getdate();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_SUREPAY_TEXT_CREDIT_CARD_NUMBER, 'field' => smn_draw_input_field('surepay_cc_number')), array('title' => MODULE_PAYMENT_SUREPAY_TEXT_CREDIT_CARD_CVV2, 'field' => smn_draw_input_field('surepay_cc_cvv2')), array('title' => MODULE_PAYMENT_SUREPAY_TEXT_CREDIT_CARD_EXPIRES, 'field' => smn_draw_pull_down_menu('surepay_cc_expires_month', $expires_month) . '&nbsp;' . smn_draw_pull_down_menu('surepay_cc_expires_year', $expires_year))));
     return $selection;
 }
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:15,代码来源:surepay.php

示例4: selection

 function selection()
 {
     global $order;
     if (MODULE_PAYMENT_PSIGATE_INPUT_MODE == 'Local') {
         for ($i = 1; $i < 13; $i++) {
             $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
         }
         $today = getdate();
         for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
             $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
         }
         $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_OWNER, 'field' => $order->billing['firstname'] . ' ' . $order->billing['lastname']), array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_NUMBER, 'field' => smn_draw_input_field('psigate_cc_number')), array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_EXPIRES, 'field' => smn_draw_pull_down_menu('psigate_cc_expires_month', $expires_month) . '&nbsp;' . smn_draw_pull_down_menu('psigate_cc_expires_year', $expires_year))));
     } else {
         $selection = array('id' => $this->code, 'module' => $this->title);
     }
     return $selection;
 }
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:17,代码来源:psigate.php

示例5: display_links

 function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page')
 {
     global $PHP_SELF;
     if (smn_not_null($parameters) && substr($parameters, -1) != '&') {
         $parameters .= '&';
     }
     // calculate number of pages needing links
     $num_pages = ceil($query_numrows / $max_rows_per_page);
     $pages_array = array();
     for ($i = 1; $i <= $num_pages; $i++) {
         $pages_array[] = array('id' => $i, 'text' => $i);
     }
     if ($num_pages > 1) {
         $display_links = smn_draw_form('pages', basename($PHP_SELF), '', 'get');
         if ($current_page_number > 1) {
             $display_links .= '<a href="' . smn_href_link(basename($PHP_SELF), $parameters . $page_name . '=' . ($current_page_number - 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a>&nbsp;&nbsp;';
         } else {
             $display_links .= PREVNEXT_BUTTON_PREV . '&nbsp;&nbsp;';
         }
         $display_links .= sprintf(TEXT_RESULT_PAGE, smn_draw_pull_down_menu($page_name, $pages_array, $current_page_number, 'onChange="this.form.submit();"'), $num_pages);
         if ($current_page_number < $num_pages && $num_pages != 1) {
             $display_links .= '&nbsp;&nbsp;<a href="' . smn_href_link(basename($PHP_SELF), $parameters . $page_name . '=' . ($current_page_number + 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</a>';
         } else {
             $display_links .= '&nbsp;&nbsp;' . PREVNEXT_BUTTON_NEXT;
         }
         if ($parameters != '') {
             if (substr($parameters, -1) == '&') {
                 $parameters = substr($parameters, 0, -1);
             }
             $pairs = explode('&', $parameters);
             while (list(, $pair) = each($pairs)) {
                 list($key, $value) = explode('=', $pair);
                 $display_links .= smn_draw_hidden_field(rawurldecode($key), rawurldecode($value));
             }
         }
         $display_links .= smn_hide_session_id() . '</form>';
     } else {
         $display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages);
     }
     return $display_links;
 }
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:41,代码来源:split_page_results.php

示例6: smn_db_query

  
  This source file is subject to version 2.0 of the GPL license,   
  that is bundled with this package in the file LICENSE. If you
  did not receive a copy of the oscMall System license and are unable 
  to obtain it through the world-wide-web, please send a note to    
  license@systemsmanager.net so we can mail you a copy immediately.
*/
global $page_name;
if (isset($_GET['action']) && $_GET['action'] == 'getZones') {
    $Qzones = smn_db_query('select zone_name from ' . TABLE_ZONES . ' where zone_country_id = "' . smn_db_input($_GET['country_id']) . '"');
    if (smn_db_num_rows($Qzones)) {
        $zones_array = array();
        while ($zones = smn_db_fetch_array($Qzones)) {
            $zones_array[] = array('id' => $zones['zone_name'], 'text' => $zones['zone_name']);
        }
        echo smn_draw_pull_down_menu('state', $zones_array);
    } else {
        echo smn_draw_input_field('state');
    }
    echo smn_not_null(ENTRY_STATE_TEXT) ? '&nbsp;<span class="inputRequirement">' . ENTRY_STATE_TEXT . '</span>' : '';
    exit;
}
if ($_POST['conditions'] != 1) {
    smn_redirect(smn_href_link(FILENAME_CREATE_STORE, '', 'NONSSL'));
}
if (!isset($_POST['store_type'])) {
    smn_redirect(smn_href_link(FILENAME_CREATE_STORE, '', 'NONSSL'));
} else {
    $new_store_type = (int) $_POST['store_type'];
}
if (isset($_POST['action']) && $_POST['action'] == 'process') {
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:30,代码来源:create_store_account.php

示例7: array

     if ($_GET['error']) {
         $contents[] = array('text' => TEXT_INFO_ERROR);
     }
     $contents[] = array('text' => smn_draw_hidden_field('admin_id', $mInfo->admin_id));
     $contents[] = array('text' => '<br>&nbsp;' . TEXT_INFO_FIRSTNAME . '<br>&nbsp;' . smn_draw_input_field('admin_firstname', $mInfo->admin_firstname));
     $contents[] = array('text' => '<br>&nbsp;' . TEXT_INFO_LASTNAME . '<br>&nbsp;' . smn_draw_input_field('admin_lastname', $mInfo->admin_lastname));
     $contents[] = array('text' => '<br>&nbsp;' . TEXT_INFO_EMAIL . '<br>&nbsp;' . smn_draw_input_field('admin_email_address', $mInfo->admin_email_address));
     if ($mInfo->admin_id == 1) {
         $contents[] = array('text' => smn_draw_hidden_field('admin_groups_id', $mInfo->admin_groups_id));
     } else {
         $groups_array = array(array('id' => '0', 'text' => TEXT_NONE));
         $groups_query = smn_db_query("select admin_groups_id, admin_groups_name from " . TABLE_ADMIN_GROUPS);
         while ($groups = smn_db_fetch_array($groups_query)) {
             $groups_array[] = array('id' => $groups['admin_groups_id'], 'text' => $groups['admin_groups_name']);
         }
         $contents[] = array('text' => '<br>&nbsp;' . TEXT_INFO_GROUP . '<br>&nbsp;' . smn_draw_pull_down_menu('admin_groups_id', $groups_array, $mInfo->admin_groups_id));
     }
     $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_insert.gif', IMAGE_INSERT, 'onClick="validateForm();return document.returnValue"') . ' <a href="' . smn_href_link(FILENAME_ADMIN_MEMBERS, 'page=' . $_GET['page'] . '&mID=' . $_GET['mID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'del_member':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE . '</b>');
     if ($mInfo->admin_id == 1 || $mInfo->admin_email_address == STORE_OWNER_EMAIL_ADDRESS) {
         $contents[] = array('align' => 'center', 'text' => '<br><a href="' . smn_href_link(FILENAME_ADMIN_MEMBERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->admin_id) . '">' . smn_image_button('button_back.gif', IMAGE_BACK) . '</a><br>&nbsp;');
     } else {
         $contents = array('form' => smn_draw_form('edit', FILENAME_ADMIN_MEMBERS, 'action=member_delete&page=' . $page . '&mID=' . $admin['admin_id'], 'post', 'enctype="multipart/form-data"'));
         $contents[] = array('text' => smn_draw_hidden_field('admin_id', $mInfo->admin_id));
         $contents[] = array('align' => 'center', 'text' => sprintf(TEXT_INFO_DELETE_INTRO, $mInfo->admin_firstname . ' ' . $mInfo->admin_lastname));
         $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_ADMIN_MEMBERS, 'page=' . $_GET['page'] . '&mID=' . $_GET['mID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     }
     break;
 case 'new_group':
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:admin_members.php

示例8: array

</td>
                  </tr>
<?php 
}
?>
                </table></td>
              </tr>
            </table></td>
<?php 
$heading = array();
$contents = array();
switch ($action) {
    case 'new':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_LANGUAGE . '</b>');
        $contents = array('form' => smn_draw_form('languages', FILENAME_LANGUAGES, 'action=insert'));
        $contents[] = array('text' => smn_draw_pull_down_menu('new_language_id', smn_language_list()));
        $contents[] = array('text' => '<br>' . smn_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
        $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . smn_href_link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $_GET['lID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'edit':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_LANGUAGE . '</b>');
        $contents = array('form' => smn_draw_form('languages', FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=save'));
        $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
        $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_NAME . '<br>' . smn_draw_input_field('name', $lInfo->name));
        $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_CODE . '<br>' . smn_draw_input_field('code', $lInfo->code));
        $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_IMAGE . '<br>' . smn_draw_input_field('image', $lInfo->image));
        $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_DIRECTORY . '<br>' . smn_draw_input_field('directory', $lInfo->directory));
        $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_SORT_ORDER . '<br>' . smn_draw_input_field('sort_order', $lInfo->sort_order));
        if (DEFAULT_LANGUAGE != $lInfo->code) {
            $contents[] = array('text' => '<br>' . smn_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
        }
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:languages.php

示例9: smn_draw_separator

<?php 
}
?>
  <tr>
   <td colspan="2"><?php 
echo smn_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
  </tr>
  <tr>
   <td class="main"><?php 
echo TEXT_PRODUCTS_MANUFACTURER;
?>
</td>
   <td><?php 
echo smn_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . smn_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $pInfo->manufacturers_id);
?>
</td>
  </tr>
  <tr>
   <td class="main"><?php 
echo TEXT_PRODUCTS_WEIGHT;
?>
</td>
   <td><?php 
echo smn_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . smn_draw_input_field('products_weight', $pInfo->products_weight);
?>
</td>
  </tr>
  <tr>
   <td colspan="2"><?php 
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:tab_name.php

示例10: smn_draw_form

</td>
           </tr>
        </table></td>
      </tr>
           <tr>
            <td class="main" align="right"><?php 
        echo smn_draw_form('status', FILENAME_COUPON_ADMIN, '', 'get');
        $status_array[] = array('id' => 'Y', 'text' => TEXT_COUPON_ACTIVE);
        $status_array[] = array('id' => 'N', 'text' => TEXT_COUPON_INACTIVE);
        $status_array[] = array('id' => '*', 'text' => TEXT_COUPON_ALL);
        if ($_GET['status']) {
            $status = smn_db_prepare_input($_GET['status']);
        } else {
            $status = 'Y';
        }
        echo HEADING_TITLE_STATUS . ' ' . smn_draw_pull_down_menu('status', $status_array, $status, 'onChange="this.form.submit();"');
        ?>
              </form>
           </td>
          </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr class="dataTableHeadingRow">
                <td class="dataTableHeadingContent"><?php 
        echo COUPON_NAME;
        ?>
</td>
                <td class="dataTableHeadingContent" align="center"><?php 
        echo COUPON_AMOUNT;
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:coupon_admin.php

示例11: smn_draw_form

?>
                    </td>
                  </tr>
                </table></td>
                <td width="460"><table border="0" width="460" height="390" cellspacing="0" cellpadding="2">
                  <tr>
                    <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
                      <tr><?php 
echo smn_draw_form('languages', 'index.php', '', 'get');
?>
                        <td class="heading"><?php 
echo HEADING_TITLE;
?>
</td>
                        <td align="right"><?php 
echo smn_draw_pull_down_menu('language', $languages_array, $languages_selected, 'onChange="this.form.submit();"');
?>
</td>
                      <?php 
echo smn_hide_session_id();
?>
</form></tr>
                    </table></td>
                  </tr>
<?php 
$col = 2;
$counter = 0;
for ($i = 0, $n = sizeof($cat); $i < $n; $i++) {
    if ($cat[$i]['access'] == true) {
        $counter++;
        if ($counter < $col) {
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:index.php

示例12: smn_get_zone_name

    ?>
</td>
                <td class="main">
				<?php 
    $state = smn_get_zone_name($country, $zone_id, $state);
    if ($is_read_only) {
        echo smn_get_zone_name($account['entry_country_id'], $account['entry_zone_id'], $account['entry_state']);
    } elseif ($error) {
        if ($entry_state_error) {
            if ($entry_state_has_zones) {
                $zones_array = array();
                $zones_query = smn_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . smn_db_input($country) . "' order by zone_name");
                while ($zones_values = smn_db_fetch_array($zones_query)) {
                    $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
                }
                echo smn_draw_pull_down_menu('state', $zones_array) . '&nbsp;' . ENTRY_STATE_ERROR;
            } else {
                echo smn_draw_input_field('state') . '&nbsp;' . ENTRY_STATE_ERROR;
            }
        } else {
            echo $state . smn_draw_hidden_field('zone_id') . smn_draw_hidden_field('state');
        }
    } else {
        echo smn_draw_input_field('state', smn_get_zone_name($account['entry_country_id'], $account['entry_zone_id'], $account['entry_state'])) . '&nbsp;' . '<span class="inputRequirement">' . ENTRY_STATE_TEXT . '</span>';
    }
    ?>
                </td>
              </tr>
<?php 
}
?>
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:create_account.php

示例13: smn_cfg_pull_down_tax_classes

function smn_cfg_pull_down_tax_classes($tax_class_id, $key = '')
{
    global $store_id;
    $name = $key ? 'configuration[' . $key . ']' : 'configuration_value';
    $tax_class_array = array(array('id' => '0', 'text' => TEXT_NONE));
    $tax_class_query = smn_db_query("select tax_class_id, tax_class_title from " . TABLE_TAX_CLASS . "  where store_id = '" . $store_id . "'order by tax_class_title");
    while ($tax_class = smn_db_fetch_array($tax_class_query)) {
        $tax_class_array[] = array('id' => $tax_class['tax_class_id'], 'text' => $tax_class['tax_class_title']);
    }
    return smn_draw_pull_down_menu($name, $tax_class_array, $tax_class_id);
}
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:11,代码来源:general.php

示例14: function

         var $gridClass = $siteTextGrid.data('gridObj');
         $gridClass.showLoading();
         $.ajax({
             url: '<?php 
echo $jQuery->link(basename($_SERVER['PHP_SELF']), 'action=siteTextListing');
?>
&pageName=' + this.value,
             dataType: 'json',
             success: function (data){
                 if (data.success == true){
                     $('tbody[id!="loading"]', $grid).empty();
                     jQuery.each(data.arr, function (){
                         $gridClass.addRow(this);
                     });
                     $grid.focus();
                     $grid.trigger('update');
                     $gridClass.pagerObj.onGridContentUpdate();
                     $gridClass.removeLoading();
                 }else{
                     $.ajax_unsuccessful_message_box(data);
                 }
             }
         });
     });
 });
</script>
<?php 
echo '<div>' . $siteText->getText('text_info_select_page') . ' ' . smn_draw_pull_down_menu('load_page', $pagesArray, '', 'id="load_page"') . '&nbsp;&nbsp;' . $pageNameDeleteButton->output() . '<br><br></div>';
echo $siteTextGrid->outputHTML();
echo $siteTextEditWindow->output();
echo $siteTextDeleteWindow->output();
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:tab_site_text.php

示例15: array

     $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'move_product':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_MOVE_PRODUCT . '</b>');
     $contents = array('form' => smn_draw_form('products', FILENAME_CATEGORIES, 'action=move_product_confirm&cPath=' . $cPath) . smn_draw_hidden_field('products_id', $pInfo->products_id));
     $contents[] = array('text' => sprintf(TEXT_MOVE_PRODUCTS_INTRO, $pInfo->products_name));
     $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENT_CATEGORIES . '<br><b>' . smn_output_generated_category_path($pInfo->products_id, 'product') . '</b>');
     $contents[] = array('text' => '<br>' . sprintf(TEXT_MOVE, $pInfo->products_name) . '<br>' . smn_draw_pull_down_menu('move_to_category_id', smn_get_category_tree(), $current_category_id));
     $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_move.gif', IMAGE_MOVE) . ' <a href="' . smn_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'copy_to':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_COPY_TO . '</b>');
     $contents = array('form' => smn_draw_form('copy_to', FILENAME_CATEGORIES, 'action=copy_to_confirm&cPath=' . $cPath) . smn_draw_hidden_field('products_id', $pInfo->products_id));
     $contents[] = array('text' => TEXT_INFO_COPY_TO_INTRO);
     $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENT_CATEGORIES . '<br><b>' . smn_output_generated_category_path($pInfo->products_id, 'product') . '</b>');
     $contents[] = array('text' => '<br>' . TEXT_CATEGORIES . '<br>' . smn_draw_pull_down_menu('categories_id', smn_get_category_tree(), $current_category_id));
     $contents[] = array('text' => '<br>' . TEXT_HOW_TO_COPY . '<br>' . smn_draw_radio_field('copy_as', 'link', true) . ' ' . TEXT_COPY_AS_LINK . '<br>' . smn_draw_radio_field('copy_as', 'duplicate') . ' ' . TEXT_COPY_AS_DUPLICATE);
     $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_copy.gif', IMAGE_COPY) . ' <a href="' . smn_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if ($rows > 0) {
         if (isset($cInfo) && is_object($cInfo)) {
             // category info box contents
             $category_path_string = '';
             $category_path = smn_generate_category_path($cInfo->categories_id);
             for ($i = sizeof($category_path[0]) - 1; $i > 0; $i--) {
                 $category_path_string .= $category_path[0][$i]['id'] . '_';
             }
             $category_path_string = substr($category_path_string, 0, -1);
             $heading[] = array('text' => '<b>' . $cInfo->categories_name . '</b>');
             $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_CATEGORIES, 'cPath=' . $category_path_string . '&cID=' . $cInfo->categories_id . '&action=edit_category') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_CATEGORIES, 'cPath=' . $category_path_string . '&cID=' . $cInfo->categories_id . '&action=delete_category') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . smn_href_link(FILENAME_CATEGORIES, 'cPath=' . $category_path_string . '&cID=' . $cInfo->categories_id . '&action=move_category') . '">' . smn_image_button('button_move.gif', IMAGE_MOVE) . '</a>');
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:categories.php


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