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


PHP OptionTags函数代码示例

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


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

示例1: OptionTags

" />
        </div>

        <div class="fieldgroup">
            <label for="options">Options:</label>
            <input type="text" name="options" id="options" size="70" value="<?php 
echo $_REQUEST['options'];
?>
" />
        </div>

        <div class="fieldgroup">
            <label for="validation">Validation:</label>
            <select name="validation" id="validation">
              <?php 
echo OptionTags($VALIDATION_TYPES, $_REQUEST['validation']);
?>
            </select>
            &nbsp;
            <input type="text" name="validation_extras" id="validation_extras" size="30" value="<?php 
echo $_REQUEST['validation_extras'];
?>
" />
        </div>

        <div class="fieldgroup">
            <label for="validation_message">Validation Error:</label>
            <input type="text" name="validation_message" id="validation_message" size="70" value="<?php 
echo $_REQUEST['validation_message'];
?>
" />
开发者ID:Cyberspace-Networks,项目名称:TGPX,代码行数:31,代码来源:gallery-fields-add.php

示例2: array

        </div>

        <div class="fieldgroup">
            <label for="time_format">Time Format:</label>
            <input type="text" name="time_format" id="time_format" size="20" value="<?php 
echo $C['time_format'];
?>
" />
        </div>

        <div class="fieldgroup">
            <label for="timezone">Timezone:</label>
            <select name="timezone" id="timezone">
            <?php 
$zones = array('-12' => '(GMT -12:00) Eniwetok, Kwajalein', '-11' => '(GMT -11:00) Midway Island, Samoa', '-10' => '(GMT -10:00) Hawaii', '-9' => '(GMT -9:00) Alaska', '-8' => '(GMT -8:00) Pacific Time (US & Canada)', '-7' => '(GMT -7:00) Mountain Time (US & Canada)', '-6' => '(GMT -6:00) Central Time (US & Canada), Mexico City', '-5' => '(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima', '-4' => '(GMT -4:00) Atlantic Time (Canada), La Paz, Santiago', '-3.5' => '(GMT -3:30) Newfoundland', '-3' => '(GMT -3:00) Brazil, Buenos Aires, Georgetown', '-2' => '(GMT -2:00) Mid-Atlantic', '-1' => '(GMT -1:00 hour) Azores, Cape Verde Islands', '0' => '(GMT) Western Europe Time, London, Lisbon, Casablanca', '1' => '(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris', '2' => '(GMT +2:00) Kaliningrad, South Africa', '3' => '(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg', '3.5' => '(GMT +3:30) Tehran', '4' => '(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi', '4.5' => '(GMT +4:30) Kabul', '5' => '(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent', '5.5' => '(GMT +5:30) Bombay, Calcutta, Madras, New Delhi', '6' => '(GMT +6:00) Almaty, Dhaka, Colombo', '6.5' => '(GMT +6:30) Yangon, Cocos Islands', '7' => '(GMT +7:00) Bangkok, Hanoi, Jakarta', '8' => '(GMT +8:00) Beijing, Perth, Singapore, Hong Kong', '9' => '(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk', '9.5' => '(GMT +9:30) Adelaide, Darwin', '10' => '(GMT +10:00) Eastern Australia, Guam, Vladivostok', '11' => '(GMT +11:00) Magadan, Solomon Islands, New Caledonia', '12' => '(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka');
echo OptionTags($zones, $C['timezone']);
?>
            </select>
        </div>

        <div class="fieldgroup">
            <label for="dec_point">Decimal Point:</label>
            <input type="text" name="dec_point" id="dec_point" size="10" value="<?php 
echo $C['dec_point'];
?>
" />
        </div>

        <div class="fieldgroup">
            <label for="thousands_sep">Thousands Separator:</label>
            <input type="text" name="thousands_sep" id="thousands_sep" size="10" value="<?php 
开发者ID:hackingman,项目名称:LinkX,代码行数:31,代码来源:settings-general.php

示例3: OptionTags

echo OptionTags($types, $_REQUEST['type']);
?>
            </select>
        </div>

        <div class="fieldgroup">
            <label for="format">Format:</label>
            <select name="format">
            <?php 
if (!$editing) {
    ?>
              <option value="">Auto-detect</option>
            <?php 
}
$formats = array('pictures' => 'Pictures', 'movies' => 'Movies');
echo OptionTags($formats, $_REQUEST['format']);
?>
            </select>
        </div>

        <div class="fieldgroup">
            <label for="username">Partner:</label>
            <input type="text" name="partner" id="partner" size="30" value="<?php 
echo $_REQUEST['partner'];
?>
" />
            <img src="images/search.png" height="12" width="12" alt="Search" onclick="searchUsers()" class="click-image"> &nbsp;
            <span id="user_search" style="display: none;"></span>
        </div>

        <div class="fieldgroup">
开发者ID:Cyberspace-Networks,项目名称:TGPX,代码行数:31,代码来源:galleries-add.php

示例4: OptionTags

" />
        </div>

        <div class="fieldgroup">
            <label for="options">Options:</label>
            <input type="text" name="options" id="options" size="70" value="<?php 
echo $_REQUEST['options'];
?>
" />
        </div>

        <div class="fieldgroup">
            <label for="validation">Validation:</label>
            <select name="validation" id="validation">
              <?php 
echo OptionTags($validation_options, $_REQUEST['validation']);
?>
            </select>
            &nbsp;
            <input type="text" name="validation_extras" id="validation_extras" size="30" value="<?php 
echo $_REQUEST['validation_extras'];
?>
" />
        </div>

        <div class="fieldgroup">
            <label for="validation_message">Validation Error:</label>
            <input type="text" name="validation_message" id="validation_message" size="70" value="<?php 
echo $_REQUEST['validation_message'];
?>
" />
开发者ID:hackingman,项目名称:LinkX,代码行数:31,代码来源:link-fields-add.php

示例5: OptionTags

          </div>

          <div class="fieldgroup">
          <label style="width: 250px;">Links with blacklisted data:</label>
          <select name="action_blacklist">
          <?php 
echo OptionTags($actions, $_REQUEST['action_blacklist']);
?>
          </select>
          </div>

          <div class="fieldgroup">
          <label style="width: 250px;">Links with no reciprocal link:</label>
          <select name="action_norecip">
          <?php 
echo OptionTags($actions, $_REQUEST['action_norecip']);
?>
          </select>
          </div>

        </fieldset>

    <div class="centered margin-top">
      <button type="submit"><?php 
echo $editing ? 'Update' : 'Add';
?>
 Scanner Configuration</button>
    </div>

    <input type="hidden" name="r" value="<?php 
echo $editing ? 'lxEditScannerConfig' : 'lxAddScannerConfig';
开发者ID:hackingman,项目名称:LinkX,代码行数:31,代码来源:link-scanner-add.php

示例6: array

        </div>
        
        <div class="fieldgroup">
            <label for="submitted_hold">Submitted Holding Period:</label>
            <input type="text" name="submitted_hold" id="submitted_hold" size="10" value="<?php 
echo $C['submitted_hold'];
?>
" />
        </div>
        
        <div class="fieldgroup">
            <label for="submit_status">Submission Status:</label>
            <select name="submit_status" id="submit_status">
            <?php 
$submit_statuses = array('all' => 'Open to all submitters', 'partner' => 'Open only to partners', 'closed' => 'Closed for all');
echo OptionTags($submit_statuses, $C['submit_status']);
?>
            </select>
        </div>
        
        <div class="fieldgroup">
            <label class="lesspad"></label>
            <label for="allow_num_thumbs" class="cblabel inline"><?php 
echo CheckBox('allow_num_thumbs', 'checkbox', 1, $C['allow_num_thumbs']);
?>
 
            Allow user to submit the number of thumbs on their gallery</label>
        </div>
        
        <div class="fieldgroup">
            <label class="lesspad"></label>
开发者ID:Cyberspace-Networks,项目名称:TGPX,代码行数:31,代码来源:settings-general.php

示例7: FormField

function FormField($options, $value)
{
    $html = '';
    $select_options = explode(',', $options['options']);
    $options['tag_attributes'] = str_replace(array('&quot;', '&#039;'), array('"', "'"), $options['tag_attributes']);
    switch ($options['type']) {
        case FT_CHECKBOX:
            $tag_value = null;
            if (preg_match('/value\\s*=\\s*["\']?([^\'"]+)\\s?/i', $options['tag_attributes'], $matches)) {
                $tag_value = $matches[1];
            } else {
                $tag_value = 1;
                $options['tag_attributes'] .= ' value="1"';
            }
            $html = "<input " . "type=\"checkbox\" " . "name=\"{$options['name']}\" " . "id=\"{$options['name']}\" " . ($value == $tag_value ? "checked=\"checked\" " : '') . "{$options['tag_attributes']} />\n";
            break;
        case FT_SELECT:
            $html = "<select " . "name=\"{$options['name']}\" " . "id=\"{$options['name']}\" " . "{$options['tag_attributes']}>\n" . OptionTags($select_options, $value, TRUE) . "</select>\n";
            break;
        case FT_TEXT:
            $html = "<input " . "type=\"text\" " . "name=\"{$options['name']}\" " . "id=\"{$options['name']}\" " . "value=\"{$value}\" " . "{$options['tag_attributes']} />\n";
            break;
        case FT_TEXTAREA:
            $html = "<textarea " . "name=\"{$options['name']}\" " . "id=\"{$options['name']}\" " . "{$options['tag_attributes']}>" . $value . "</textarea>\n";
            break;
    }
    return $html;
}
开发者ID:Cyberspace-Networks,项目名称:TGPX,代码行数:28,代码来源:common.php

示例8: CheckBox

            </div>           
            
            <div class="fieldgroup">
                <label></label>
                <label for="movies_preview_allowed" class="cblabel inline"><?php 
echo CheckBox('movies_preview_allowed', 'checkbox', 1, $_REQUEST['movies_preview_allowed']);
?>
 Allow preview thumbnails for this format</label>
            </div>          
            
            <div class="fieldgroup">
                <label for="movies_preview_size">Preview Dimensions:</label>
                <select name="movies_preview_size">
                  <option value="custom">Custom --&gt;</option>
                  <?php 
echo OptionTags($sizes, $_REQUEST['movies_preview_size'], TRUE);
?>
                </select>
                <input type="text" name="movies_preview_size_custom" id="movies_preview_size_custom" size="10" value="<?php 
echo $_REQUEST['movies_preview_size_custom'];
?>
" />
                <span style="padding-left: 5px;">WxH</span>
            </div>
            
            <div class="fieldgroup">
                <label for="movies_annotation">Preview Annotation:</label>
                <?php 
if (!count($annotations)) {
    ?>
                <div style="float: left;" class="warn">No annotations have been configured</div>
开发者ID:Cyberspace-Networks,项目名称:TGPX,代码行数:31,代码来源:categories-add.php

示例9: checkForm

  <div id="centered-content" class="max-width">
    <div class="heading">
      <div class="heading-icon">
        <a href="docs/templates-email.html" target="_blank"><img src="images/help.png" border="0" alt="Help" title="Help"></a>
      </div>
      E-mail Templates
    </div>

    <form action="index.php" method="POST" onSubmit="return checkForm()">

    <div class="centered margin-top" style="font-weight: bold">
      <select name="template">
        <?php 
$templates =& DirRead("{$GLOBALS['BASE_DIR']}/templates", '^email[^\\.]+\\.tpl$');
asort($templates);
echo OptionTags($templates, $_REQUEST['loaded_template'], TRUE);
?>
      </select>
      &nbsp;
      <button type="submit" onclick="$('#r').val('lxLoadEmailTemplate')">Load Template</button>
    </div>

    <input type="hidden" id="r" name="r" value="">

    <?php 
if ($_REQUEST['loaded_template']) {
    ?>
    <br />

    <div class="heading">
      Editing Template <?php 
开发者ID:hackingman,项目名称:LinkX,代码行数:31,代码来源:templates-email.php

示例10: array

?>

        <fieldset>
          <legend>General Settings</legend>

        <div class="fieldgroup">
            <label for="type">Select Image:</label>
            <input type="file" name="upload" id="upload" size="40">
        </div>

        <div class="fieldgroup">
            <label for="type">Resize Image:</label>
            <select name="action" id="action">
            <?php 
$actions = array('' => 'NO', 'auto' => 'Automatically', 'manual' => 'Manually');
echo OptionTags($actions, $_REQUEST['action']);
?>
            </select>
        </div>
        </fieldset>

    <div class="centered margin-top">
      <button type="submit">Upload Preview Thumb</button>
    </div>

    <input type="hidden" name="r" value="txPreviewUpload">
    <input type="hidden" name="gallery_id" value="<?php 
echo $_REQUEST['gallery_id'];
?>
">
    </form>
开发者ID:Cyberspace-Networks,项目名称:TGPX,代码行数:31,代码来源:preview-upload.php

示例11: array

          <div class="fieldgroup">
            <label for="type">Type:</label>
            <select name="settings[type]" id="type">
            <?php 
$types = array('submitted' => 'Submitted', 'permanent' => 'Permanent');
echo OptionTags($types, $_REQUEST['settings']['type']);
?>
            </select>
          </div>
          
          <div class="fieldgroup">
            <label for="format">Format:</label>
            <select name="settings[format]" id="format">
            <?php 
$formats = array('pictures' => 'Pictures', 'movies' => 'Movies');
echo OptionTags($formats, $_REQUEST['settings']['format']);
?>
            </select>
          </div>
          
          <div class="fieldgroup">
            <label for="category">Category:</label>
            <select name="settings[category]" id="category">
            <?php 
$categories =& $DB->FetchAll('SELECT `name`,`category_id` FROM `tx_categories` ORDER BY `name`');
echo OptionTagsAdv($categories, $_REQUEST['settings']['category'], 'category_id', 'name', 60);
?>
            </select>
            </div>
          </div>
      
开发者ID:Cyberspace-Networks,项目名称:TGPX,代码行数:30,代码来源:rss-feeds-add.php

示例12: OptionTags

          <div class="fieldgroup">
            <label for="preview">Preview Thumbnail:</label>
            <select name="p[preview]" id="preview">
              <option value="true">Gallery must have a preview thumbnail</option>
              <option value="false">Gallery must NOT have a preview thumbnail</option>
              <option value="any">Don't care</option>
            </select>
          </div>

          <div class="fieldgroup">
            <label for="previewsize">Preview Size:</label>
            <select name="p[previewsize]" id="previewsize">
              <option value="">Custom --&gt;</option>
              <?php 
echo OptionTags($sizes, null, TRUE);
?>
            </select>
            <span id="customsizespan">
            <input type="text" name="p[customsize]" size="8"> &nbsp; WxH
            </span>
          </div>

          <div class="fieldgroup">
            <label for="description">Require Description:</label>
            <select name="p[description]" id="description">
              <option value="false">No, description is not required for galleries in this section</option>
              <option value="true">Yes, description is required for galleries in this section</option>
            </select>
          </div>
开发者ID:Cyberspace-Networks,项目名称:TGPX,代码行数:29,代码来源:pages-templates-wizard.php

示例13: OptionTags

          </div>  
          
          <div class="fieldgroup">
          <label style="width: 250px;">Forwarding URLs:</label>
          <select name="action_forward">
          <?php 
echo OptionTags($actions, $_REQUEST['action_forward']);
?>
          </select>
          </div>
          
          <div class="fieldgroup">
          <label style="width: 250px;">Blacklisted data:</label>
          <select name="action_blacklist">
          <?php 
echo OptionTags($actions, $_REQUEST['action_blacklist']);
?>
          </select>
          </div>
          
        </fieldset>
    
    <div class="centered margin-top">
      <button type="submit"><?php 
echo $editing ? 'Update' : 'Add';
?>
 Scanner Configuration</button>
    </div>

    <input type="hidden" name="r" value="<?php 
echo $editing ? 'tlxScannerConfigEdit' : 'tlxScannerConfigAdd';
开发者ID:hackingman,项目名称:ToplistX,代码行数:31,代码来源:accounts-scanner-add.php

示例14: array

            </select>
            <img src="images/add-small.png" onclick="addCategorySelect(this)" class="click-image" alt="Add Category">
            <img src="images/remove-small.png" onclick="removeCategorySelect(this)" class="click-image" alt="Remove Category">
            </div>
        </div>
      </td>
      </tr>
      <tr>
      <td align="right">
      <b>Search:</b>
      </td>
      <td colspan="2">
      <select name="field" id="s_field">
        <?php 
$search_fields = array('tx_galleries.gallery_id' => 'Gallery ID', 'gallery_url' => 'Gallery URL', 'description,keywords' => 'Description,Keywords', 'description' => 'Description', 'keywords' => 'Keywords', 'thumbnails' => 'Thumbnails', 'email' => 'E-mail Address', 'nickname' => 'Nickname', 'weight' => 'Weight', 'clicks' => 'Clicks', 'submit_ip' => 'Submit IP', 'gallery_ip' => 'Gallery IP', 'date_scanned' => 'Date Scanned', 'date_added' => 'Date Added', 'date_approved' => 'Date Approved', 'date_scheduled' => 'Date Scheduled', 'date_displayed' => 'Date Displayed', 'date_deletion' => 'Date of Deletion', 'partner' => 'Partner', 'administrator' => 'Administrator', 'has_recip' => 'Has Recip', 'allow_scan' => 'Allow Scan', 'allow_preview' => 'Allow Preview', 'times_selected' => 'Times Selected', 'used_counter' => 'Used Counter', 'build_counter' => 'Build Counter', 'tags' => 'Tags', 'dimensions' => 'Thumb Size', 'sponsor' => 'Sponsor Name', 'sponsor_id' => 'Sponsor ID');
echo OptionTags($search_fields, $_REQUEST['sf']);
$fields =& $DB->FetchAll('SELECT * FROM `tx_gallery_field_defs`');
echo OptionTagsAdv($fields, '', 'name', 'label', 40);
?>
      </select>
      <select name="search_type" id="s_type">
        <option value="matches">Matches</option>
        <option value="contains">Contains</option>
        <option value="starts">Starts With</option>
        <option value="less">Less Than</option>
        <option value="greater">Greater Than</option>
        <option value="between">Between</option>
        <option value="empty">Empty</option>
      </select>
      <input type="text" name="search" id="s_search" value="<?php 
echo $_REQUEST['s'];
开发者ID:Cyberspace-Networks,项目名称:TGPX,代码行数:31,代码来源:galleries-search.php

示例15: CheckBox

?>
        </div>

        <div class="fieldgroup">
            <label></label>
            <label for="regex" class="cblabel inline"><?php 
echo CheckBox('regex', 'checkbox', 1, $_REQUEST['regex']);
?>
 Regular expression</label>
        </div>

        <div class="fieldgroup">
            <label for="type">Type:</label>
            <select name="type" id="type">
              <?php 
echo OptionTags($BLIST_TYPES, $_REQUEST['type']);
?>
            </select>
        </div>

        <div class="fieldgroup">
            <label for="reason">Reason:</label>
            <input type="text" name="reason" id="reason" size="60" value="<?php 
echo $_REQUEST['reason'];
?>
" />
        </div>

        </fieldset>

    <div class="centered margin-top">
开发者ID:Cyberspace-Networks,项目名称:TGPX,代码行数:31,代码来源:blacklist-add.php


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