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


PHP CheckBox函数代码示例

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


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

示例1: array_unshift

    array_unshift($sponsors, array('sponsor_id' => '', 'name' => ''));
    echo OptionTagsAdv($sponsors, $gallery['sponsor_id'], 'sponsor_id', 'name', 40);
    ?>
</select>
<?php 
}
?>

<span style="padding-left: 30px; font-weight: bold">
<?php 
echo CheckBox('allow_scan', 'checkbox', '1', $gallery['allow_scan']);
?>
 <label for="allow_scan" class="plain-label">Scan</label>
&nbsp;
<?php 
echo CheckBox('allow_preview', 'checkbox', '1', $gallery['allow_preview']);
?>
 <label for="allow_preview" class="plain-label">Thumb</label>
</span>
</td>
<td align="right" width="70" class="bold">
Format
</td>
<td>
<select name="format">
<?php 
$formats = array('pictures' => 'Pictures', 'movies' => 'Movies');
echo OptionTags($formats, $gallery['format']);
?>
</select>
</td>
开发者ID:Cyberspace-Networks,项目名称:TGPX,代码行数:31,代码来源:review-galleries-form.php

示例2: CheckBox

?>
" class="calendarSelectDate" />
        </div>

        <div class="fieldgroup">
            <label class="lesspad"></label>
            <label for="recip_required" class="cblabel inline"><?php 
echo CheckBox('recip_required', 'checkbox', 1, $_REQUEST['recip_required']);
?>
 Require a reciprocal link</label>
        </div>

        <div class="fieldgroup">
            <label class="lesspad"></label>
            <label for="allow_redirect" class="cblabel inline"><?php 
echo CheckBox('allow_redirect', 'checkbox', 1, $_REQUEST['allow_redirect']);
?>
 Allow URL redirection</label>
        </div>
        </fieldset>

      <?php 
$result = $DB->Query('SELECT * FROM lx_user_field_defs ORDER BY field_id');
?>
      <fieldset<?php 
if ($DB->NumRows($result) < 1) {
    echo ' style="display: none;"';
}
?>
>
        <legend>User Defined Fields</legend>
开发者ID:hackingman,项目名称:LinkX,代码行数:31,代码来源:users-add.php

示例3: saveCfg

    saveCfg($_POST['savecfg'], $stream_config);
} elseif ($act == 'settings') {
    /*===========================
      Настройки модуля
      ===========================*/
    echoheader("<i class=\"icon-cog\"></i> Страница настройки модуля", "Можете настроить модуль Stream-Info на ваш выбор");
    echomenu();
    opentable("Настройка модуля");
    echo <<<HTML
    <form action="" method="POST">
    <div class="box-content">
    <table class="table table-normal">
HTML;
    showRow("<b>Включить модуль?</b>", "Данная опция позволит показывать стримы на сайте.", CheckBox('savecfg[allow_stream]', "{$stream_config['allow_stream']}"));
    showRow("<b>Выводить плеер в краткой информации о трансляции?</b>", "<span style=\"color:red;\">Внимание! Использование этой функции нагружает браузер.</span>", CheckBox('savecfg[showplayer]', "{$stream_config['showplayer']}"));
    showRow("<b>Включить кэширование списка трансляций?</b>", "Заметно ускоряет вывод списка трансляций.", CheckBox('savecfg[cache_allow]', "{$stream_config['cache_allow']}"));
    showRow("Время жизни кэша", "В минутах (60/120/180/etc)", "<input type=\"text\" style=\"width:100%;\" name=\"savecfg[cachelife]\" value=\"{$stream_config['cachelife']}\" size=\"25\">");
    showRow("Количество трансляций на главной", "Укажите количество трансляций в блоке '{stream-info}'.", "<input type=\"text\" style=\"width:100%;\" name=\"savecfg[blocklimit]\" value=\"{$stream_config['blocklimit']}\" size=\"25\">");
    showRow("Ширина плеера", "В пикселях.", "<input type=\"text\" style=\"width:100%;\" name=\"savecfg[width]\" value=\"{$stream_config['width']}\" size=\"25\">");
    showRow("Высота плеера", "В пикселях.", "<input type=\"text\" style=\"width:100%;\" name=\"savecfg[height]\" value=\"{$stream_config['height']}\" size=\"25\">");
    showRow("Статус онлайн", "Сообщение для вывода статуса.", "<input type=\"text\" style=\"width:100%;\" name=\"savecfg[online]\" value=\"{$stream_config['online']}\" size=\"25\">");
    showRow("Статус оффлайн", "Сообщение для вывода статуса.", "<input type=\"text\" style=\"width:100%;\" name=\"savecfg[offline]\" value=\"{$stream_config['offline']}\" size=\"25\">");
    showRow("Заглушка для плеера", "Если трансляция оффлайн, показывается заглушка (используйте BB-коды).", "<input type=\"text\" style=\"width:100%;\" name=\"savecfg[zagluska]\" value=\"{$stream_config['zagluska']}\" size=\"25\">");
    showRow("Название (Тайтл) модуля", "Тайтл модуля который будет отображаться в браузере", "<input type=\"text\" style=\"width:100%;\" name=\"savecfg[stream_title]\" value=\"{$stream_config['stream_title']}\" size=\"25\">");
    showRow("Описание (Description) модуля", "Краткое описание, не более 200 символов.", "<input type=\"text\" style=\"width:100%;\" name=\"savecfg[stream_desc]\" value=\"{$stream_config['stream_desc']}\" size=\"25\">");
    showRow("Ключевые слова (Keywords) для модуля", "Введите через запятую основные ключевые слова.", "<input type=\"text\" style=\"width:100%;\" name=\"savecfg[stream_keywords]\" value=\"{$stream_config['stream_keywords']}\" size=\"25\">");
    showRow("", "", "<input type=\"hidden\" name=\"action\" value=\"savesettings\">", false);
    showRow("<input type=\"submit\" class=\"btn btn-success\" value=\"Сохранить настройки\">");
    echo <<<HTML
    </table>
    </div>
开发者ID:xxados,项目名称:stream-info,代码行数:31,代码来源:stream-info.php

示例4: CheckBox

            <label></label>
            <div style="float: left; width: 500px; padding-bottom: 5px;">
            <label for="on_submit" class="cblabel"><?php 
echo CheckBox('on_submit', 'checkbox', 1, $_REQUEST['on_submit']);
?>
 Display on link submission form</label>
            <label for="on_edit" class="cblabel"><?php 
echo CheckBox('on_edit', 'checkbox', 1, $_REQUEST['on_edit']);
?>
 Display on link editing form</label>
            <label for="on_details" class="cblabel"><?php 
echo CheckBox('on_details', 'checkbox', 1, $_REQUEST['on_details']);
?>
 Display on site details page</label>
            <label for="required" class="cblabel"><?php 
echo CheckBox('required', 'checkbox', 1, $_REQUEST['required']);
?>
 Field is required for submission</label>
            </div>
        </div>

        </fieldset>

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

    <input type="hidden" name="field_id" value="<?php 
开发者ID:hackingman,项目名称:LinkX,代码行数:31,代码来源:link-fields-add.php

示例5: CheckBox

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

        <div class="fieldgroup">
            <label for="identifier">Identifier:</label>
            <input type="text" name="identifier" id="identifier" size="60" value="<?php 
echo $_REQUEST['identifier'];
?>
" />
        </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="code">Link Code:</label>
            <textarea type="text" name="code" id="code" rows="5" cols="80"><?php 
echo $_REQUEST['code'];
?>
</textarea>
        </div>

        </fieldset>

    <div class="centered margin-top">
开发者ID:hackingman,项目名称:LinkX,代码行数:30,代码来源:reciprocals-add.php

示例6: CheckBox

          </div>

          <div class="fieldgroup">
            <label class="lesspad"></label>
            <label for="process_rebuild" class="cblabel inline">
            <?php 
echo CheckBox('process_rebuild', 'checkbox', 1, $_REQUEST['process_rebuild']);
?>
 Rebuild the TGP pages when the scanner is completed</label>
          </div>

          <div class="fieldgroup">
            <label class="lesspad"></label>
            <label for="process_emailadmin" class="cblabel inline">
            <?php 
echo CheckBox('process_emailadmin', 'checkbox', 1, $_REQUEST['process_emailadmin']);
?>
 Send an e-mail to administrators when the scanner is completed</label>
          </div>

        </fieldset>

        <fieldset>
          <legend>Actions</legend>

          <div class="fieldgroup">
          <label style="width: 250px;">Connection errors:</label>
          <select name="action_connect">
          <?php 
$actions = array('0x00000000' => 'Ignore', '0x00000001' => 'Display in report only', '0x00000002' => 'Change gallery status to disabled', '0x00000004' => 'Delete gallery from database', '0x00000008' => 'Delete gallery and blacklist');
echo OptionTags($actions, $_REQUEST['action_connect']);
开发者ID:Cyberspace-Networks,项目名称:TGPX,代码行数:31,代码来源:galleries-scanner-add.php

示例7: CheckBox

            Require verification code on gallery submission form for partner submitters</label>
        </div>
        
        <div class="fieldgroup">
            <label class="lesspad"></label>
            <label for="request_captcha" class="cblabel inline"><?php 
echo CheckBox('request_captcha', 'checkbox', 1, $C['request_captcha']);
?>
 
            Require verification code on partner account request form</label>
        </div>
        
        <div class="fieldgroup">
            <label class="lesspad"></label>
            <label for="report_captcha" class="cblabel inline"><?php 
echo CheckBox('report_captcha', 'checkbox', 1, $C['report_captcha']);
?>
 
            Require verification code on bad gallery reporting form</label>
        </div>
      </fieldset>
      
    <div class="centered margin-top">
      <button type="submit">Save Settings</button>
    </div>
    
    <input type="hidden" name="r" value="txGeneralSettingsSave">
    </form>
</div>

开发者ID:Cyberspace-Networks,项目名称:TGPX,代码行数:29,代码来源:settings-general.php

示例8: CheckBox

            
            <div class="fieldgroup">
                <label></label>
                <label for="download_banners" class="cblabel inline">
                <?php 
echo CheckBox('download_banners', 'checkbox', 1, $_REQUEST['download_banners']);
?>
 Download banners to check height, width, and filesize
                </label>
            </div>
            
            <div class="fieldgroup">
                <label></label>
                <label for="host_banners" class="cblabel inline">
                <?php 
echo CheckBox('host_banners', 'checkbox', 1, $_REQUEST['host_banners']);
?>
 Host member account banners from your server
                </label>
            </div>
        </fieldset>
        
        
        <?php 
if ($editing) {
    ?>
        <fieldset>
          <legend>Bulk Edit Options</legend>          
            <div class="fieldgroup">
              <label></label>
              <input type="checkbox" class="checkbox" name="apply_all" id="apply_all" value="1"> 
开发者ID:hackingman,项目名称:ToplistX,代码行数:30,代码来源:categories-add.php

示例9: CheckBox

echo CheckBox('disabled', 'checkbox', 1, $_REQUEST['disabled']);
?>
 Disabled</label>
        </div>

        <?php 
foreach ($icons as $icon) {
    ?>
          <div class="fieldgroup">
            <label class="lesspad"></label>
            <label for="icons[<?php 
    echo $icon['icon_id'];
    ?>
]" class="cblabel inline">
            <?php 
    echo CheckBox("icons[{$icon['icon_id']}]", 'checkbox', $icon['icon_id'], $_REQUEST['icons'][$icon['icon_id']]) . " " . $icon['icon_html'];
    ?>
</label>
          </div>
        <?php 
}
?>
      </fieldset>


      <fieldset>
        <legend>Click Tracking Data</legend>

        <div class="fieldgroup">
            <label for="return_percent">Return Percent:</label>
            <input type="text" name="return_percent" id="return_percent" size="10" value="<?php 
开发者ID:hackingman,项目名称:ToplistX,代码行数:31,代码来源:accounts-add.php

示例10: addpermchecked

function addpermchecked($param1)
{
    global $wgScriptPath;
    $tableEntry = '<tr id="' . $param1 . '" onmousedown="document.getElementById(\'' . $param1 . '\').style.background = \'grey\';" onmouseup="document.getElementById(\'' . $param1 . '\').style.background = \'lightgrey\'" onmouseover="document.getElementById(\'' . $param1 . '\').style.background = \'lightgrey\'" onmouseout="document.getElementById(\'' . $param1 . '\').style.background = \'white\'">
	<td>' . $param1 . '</td>
	<td><!--<input id="CB' . $param1 . '" type="checkbox" checked="true"/>-->' . CheckBox('CHK' . $param1, true) . '</td>
	<td style="width:18px;text-align:center;vertical-align:middle"><img title="Remove Permission" id="PiC' . $param1 . '" src="' . $wgScriptPath . '/extensions/GroupPermissions/images/deleteT.png" height="16" width="16" onclick="removeitem(\'' . $param1 . '\');" onmouseover="document.getElementById(\'PiC' . $param1 . '\').setAttribute(\'width\',\'18\');document.getElementById(\'PiC' . $param1 . '\').setAttribute(\'height\',\'18\');" onmouseout="document.getElementById(\'PiC' . $param1 . '\').setAttribute(\'width\',\'16\'); document.getElementById(\'PiC' . $param1 . '\').setAttribute(\'height\',\'16\');" /></td>
	<td style="width:18px;text-align:center;vertical-align:middle"><img title="Display Description" id="HlP' . $param1 . '" src="' . $wgScriptPath . '/extensions/GroupPermissions/images/help.png" height="16" width="16" onclick="togglevisibility(\'HLP' . $param1 . '\');" onmouseover="document.getElementById(\'HlP' . $param1 . '\').setAttribute(\'width\',\'18\');document.getElementById(\'HlP' . $param1 . '\').setAttribute(\'height\',\'18\');" onmouseout="document.getElementById(\'HlP' . $param1 . '\').setAttribute(\'width\',\'16\'); document.getElementById(\'HlP' . $param1 . '\').setAttribute(\'height\',\'16\');" /></td></tr>
	<tr><td colspan="4"><div id="HLP' . $param1 . '" style="display:none;border:black solid 1px">' . permissiondescription($param1, 0) . '</div></td></tr>';
    return $tableEntry;
}
开发者ID:mediawiki-extensions,项目名称:micp,代码行数:11,代码来源:GroupPermissions.php

示例11: CheckBox

?>
 Auto-approve galleries</label><br />
        </div>

        <div class="fieldgroup">
            <label class="lesspad"></label>
            <label for="allow_noconfirm" class="cblabel inline"><?php 
echo CheckBox('allow_noconfirm', 'checkbox', 1, $_REQUEST['allow_noconfirm']);
?>
 No confirmation e-mail required</label>
        </div>

        <div class="fieldgroup">
            <label class="lesspad"></label>
            <label for="allow_blacklist" class="cblabel inline"><?php 
echo CheckBox('allow_blacklist', 'checkbox', 1, $_REQUEST['allow_blacklist']);
?>
 Allow blacklisted items</label>
        </div>

        </fieldset>

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

    <input type="hidden" name="r" value="<?php 
echo $editing ? 'txWhitelistEdit' : 'txWhitelistAdd';
开发者ID:Cyberspace-Networks,项目名称:TGPX,代码行数:31,代码来源:whitelist-add.php

示例12: CheckBox

               
          <div class="fieldgroup">
            <label for="search">Search For:</label>
            <textarea name="search" id="search" rows="7" cols="100" wrap="off"></textarea>
          </div>
          
          <div class="fieldgroup">
            <label for="replace">Replace With:</label>
            <textarea name="replace" id="replace" rows="7" cols="100" wrap="off"></textarea>
          </div>
          
          <div class="fieldgroup">
            <label></label>
            <label for="detailed" class="cblabel inline">
            <?php 
echo CheckBox('detailed', 'checkbox', 1, $_REQUEST['detailed']);
?>
 Display detailed search and replace results</label>
          </div> 
        
        </fieldset>
    
    <div class="centered margin-top">
      <button type="submit">Search and Replace</button>
    </div>

    <input type="hidden" name="r" value="txPageTemplatesReplace">
    </form>
</div>

    
开发者ID:Cyberspace-Networks,项目名称:TGPX,代码行数:28,代码来源:pages-templates-replace.php

示例13: add_form

 public function add_form($AccountID, $OrderID = null)
 {
     global $LANG, $lInfo, $PAYMETHOD, $PAYTARGET, $DomainPrice;
     $show = openForm(iSELF);
     $show .= HiddenField('object', 'payment');
     $show .= HiddenField('action', 'add2');
     $show .= HiddenField('AccountID', $AccountID);
     $show .= HiddenField('OrderID', $OrderID);
     $show .= beginTable($LANG['Payment']);
     if (!empty($OrderID)) {
         $order = new Order($OrderID);
         $show .= StaticField($LANG['OrderID'], $order->id);
         if ($order->service == 'hosting') {
             // Calculate hosting price
             //$serv = new Service_hosting(array('opentime'=>date('Y-m-d H:i:s', iNOW_UNIX - $order->count*iMON), 'closetime'=>iNOW_TEXT, 'mod'=>$order->package->id));
             $hosting_price = $order->count * $order->package->price;
             $show .= '<tr><td class="nob">' . HiddenField('item', 'hosting') . '</td></tr>';
             $pack_array = array();
             foreach ($PAYMETHOD as $index => $val) {
                 $pack_array[] = $index;
                 $pack_array[] = $val;
             }
             $show .= ArrayDropBox($LANG['Paymethod'], 'method', $order->paymethod, $pack_array);
             $show .= TextField($LANG['Amount'] . ', руб.', 'amount', round($hosting_price, 2));
             if ($order->domaininfo['action'] == 'reg') {
                 $domain_price = $DomainPrice[zone($order->domain)][0];
                 if ($DomainPrice[zone($order->domain)][3]) {
                     foreach ($order->package->bonusdomain as $time => $bonus) {
                         if ($order->count >= $time) {
                             $domain_price = 0.0;
                         }
                     }
                 }
                 $show .= CheckBox($lInfo['reg'] . ' ' . $order->domain, 'domain', true);
                 $show .= TextField($LANG['Domain'] . ' ' . $LANG['Amount'] . ', руб.', 'domain_amount', round($domain_price, 2));
             }
         } elseif ($order->service == 'domain' || $order->service == 'domain_cont') {
             $amount = $order->amount;
             $show .= StaticField('Назаначение', "<input type='radio' name='item' value='{$order->service}' checked='checked' />" . $PAYTARGET[$order->service]['name'] . '<br />(регистрация/продление домена и добавление услуги)<br />' . "<input type='radio' name='item' value='hosting' />" . $PAYTARGET['hosting']['name'] . '<br />(продление хостинга)');
             $pack_array = array();
             foreach ($PAYMETHOD as $index => $val) {
                 $pack_array[] = $index;
                 $pack_array[] = $val;
             }
             $show .= ArrayDropBox($LANG['Paymethod'], 'method', $order->paymethod, $pack_array);
             $show .= TextField($LANG['Amount'], 'amount', round($amount, 2));
         } else {
             $amount = $order->amount;
             $pack_array = array();
             foreach ($PAYTARGET as $index => $val) {
                 $pack_array[] = $index;
                 $pack_array[] = $val['name'];
             }
             $show .= ArrayDropBox($LANG['Service'], 'item', $order->service, $pack_array);
             $pack_array = array();
             foreach ($PAYMETHOD as $index => $val) {
                 $pack_array[] = $index;
                 $pack_array[] = $val;
             }
             $show .= ArrayDropBox($LANG['Paymethod'], 'method', $order->paymethod, $pack_array);
             $show .= TextField($LANG['Amount'], 'amount', round($amount, 2));
         }
     } else {
         $amount = 0.0;
         $Service = 'hosting_cont';
         $PayMethod = '';
         $show .= TextField($LANG['OrderID'], 'OrderID', '');
         $pack_array = array();
         foreach ($PAYTARGET as $index => $val) {
             $pack_array[] = $index;
             $pack_array[] = $val['name'];
         }
         $show .= ArrayDropBox($LANG['Service'], 'item', $Service, $pack_array);
         $pack_array = array();
         foreach ($PAYMETHOD as $index => $val) {
             $pack_array[] = $index;
             $pack_array[] = $val;
         }
         $show .= ArrayDropBox($LANG['Paymethod'], 'method', $PayMethod, $pack_array);
         $show .= TextField($LANG['Amount'], 'amount', round($amount, 2));
     }
     if (!empty($OrderID) && ($order->service == 'hosting' || $order->service == 'hosting_cont')) {
         $show .= CheckBox('Отправить уведомление', 'Note', true);
     } else {
         $show .= CheckBox('Отправить уведомление', 'Note', false);
     }
     $show .= Submitter('new_pay', $LANG['Add']);
     $show .= endTable();
     $show .= closeForm();
     return $show;
 }
开发者ID:carriercomm,项目名称:Multicabinet,代码行数:91,代码来源:class.Payment.php

示例14: CheckBox

?>
" />
            </div>
            
            <div class="fieldgroup">
                <label for="movies_file_size">Minimum Filesize:</label>
                <input type="text" name="movies_file_size" id="movies_file_size" size="10" value="<?php 
echo $_REQUEST['movies_file_size'];
?>
" />
            </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'];
?>
开发者ID:Cyberspace-Networks,项目名称:TGPX,代码行数:31,代码来源:categories-add.php

示例15: CheckBox

?>

        <div class="fieldgroup">
            <label class="lesspad"></label>
            <label for="allow_scan" class="cblabel inline">
            <?php 
echo CheckBox('allow_scan', 'checkbox', 1, $_REQUEST['allow_scan']);
?>
 Allow the gallery scanner to scan this gallery</label>
        </div>

        <div class="fieldgroup">
            <label class="lesspad"></label>
            <label for="allow_preview" class="cblabel inline">
            <?php 
echo CheckBox('allow_preview', 'checkbox', 1, $_REQUEST['allow_preview']);
?>
 Allow the gallery scanner to create a thumbnail for this gallery</label>
        </div>
      </fieldset>

      <?php 
$result = $DB->Query('SELECT * FROM `tx_gallery_field_defs` ORDER BY `field_id`');
?>
      <fieldset<?php 
if ($DB->NumRows($result) < 1) {
    echo ' style="display: none;"';
}
?>
>
        <legend>User Defined Fields</legend>
开发者ID:Cyberspace-Networks,项目名称:TGPX,代码行数:31,代码来源:galleries-add.php


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