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


PHP is_selected函数代码示例

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


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

示例1: page

function page($totalpage, $page, $link, $anchor)
{
    $varpaging = "";
    if ($totalpage > 1) {
        if (!is_numeric($page) || $page < $totalpage) {
            $intpage = 1;
        }
        //first page
        if ($intpage == 1) {
            $varpref = "<li><a href=\"" . $link . "&amp;p=1" . $anchor . "\">&laquo; PREV |</a></li>\n";
        } else {
            $countp = $intpage - 1;
            $varpref = "<li><a href=\"" . $link . "&amp;p=" . $countp . $anchor . "\">&laquo; PREV |</a></li>\n";
        }
        //end first page
        $varpaging = " <ul class=\"paging\">\n";
        $varpaging = $varpaging . $varpref;
        for ($i = 1; $i <= $totalpage; $i++) {
            $varpaging = $varpaging . "<li><a href=\"" . $link . "&amp;p=" . $i . $anchor . "\" " . is_selected($page, $i, "class=\"selected\"", "") . ">" . $i . "</a></li>\n";
        }
        //last page
        if ($intpage > $totalpage) {
            $varnext = "<li><a href=\"" . $link . "&amp;p=" . $totalpage . $anchor . "\">| NEXT &raquo;</a></li>\n";
        } else {
            $countn = $intpage + 1;
            $varnext = "<li><a href=\"" . $link . "&amp;p=" . $countn . $anchor . "\">| NEXT &raquo;</a></li>\n";
        }
        $varpaging = $varpaging . $varnext;
        //end last page
        $varpaging = $varpaging . "</ul>";
    }
    return $varpaging;
}
开发者ID:Effzz,项目名称:www.momocuppy.com,代码行数:33,代码来源:lib.php

示例2: is_selected

		      <option value="2" <?php 
is_selected("2", $s2);
?>
><?php 
echo $BL['be_fsearch_all'];
?>
</option>
		      <option value="0" <?php 
is_selected("0", $s2);
?>
><?php 
echo $BL['be_fsearch_personal'];
?>
</option>
		      <option value="1" <?php 
is_selected("1", $s2);
?>
><?php 
echo $BL['be_fsearch_public'];
?>
</option>
              </select><img src="img/leer.gif" alt="" width="3" height="1" /></td>
		    <td><input name="submit" type="image" id="submit" src="img/button/go_search.gif" alt="<?php 
echo $BL['be_fsearch_startsearch'];
?>
" width="22" height="14" border="0" /></td>
		    </tr>
		  </table></td>
	</tr>
	<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td>
	</tr>
开发者ID:Ideenkarosell,项目名称:phpwcms,代码行数:31,代码来源:files.search.tmpl.php

示例3: is_selected

<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>

<tr>
	<td align="right" class="chatlist"><?php 
echo $BL['be_cnt_column'];
?>
:&nbsp;</td>
	<td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
		<tr>
			<td><select name="cimage_col" id="cimage_col">
<?php 
// list select menu for max image columns
for ($max_image_col = 1; $max_image_col <= 25; $max_image_col++) {
    echo '<option value="' . $max_image_col . '" ';
    is_selected($max_image_col, $content['image_list']['col']);
    echo '>' . $max_image_col . "</option>\n";
}
?>
				  </select></td>
				  <td class="chatlist">&nbsp;&nbsp;<?php 
echo $BL['be_cnt_imagespace'];
?>
:&nbsp;</td>
			      <td><input name="cimage_space" type="text" class="f11b width25" id="cimage_space" size="2" maxlength="3" onkeyup="if(!parseInt(this.value,10)) this.value='';" value="<?php 
echo empty($content['image_list']['space']) ? $template_default['imagegallery_default_space'] : $content['image_list']['space'];
?>
" /></td>
				  <td class="chatlist">&nbsp;px&nbsp;&nbsp;&nbsp;</td>

				  <td><input type="checkbox" name="cimage_random" id="cimage_random" value="1" <?php 
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:30,代码来源:cnt29.inc.php

示例4: is_selected

    ?>
:&nbsp;</td>
		<td><select name="dir_gallery" id="dir_gallery">
			<option value="0"<?php 
    is_selected(0, $dir_gallery);
    ?>
>-</option>
			<option value="2"<?php 
    is_selected(2, $dir_gallery);
    ?>
><?php 
    echo $BL['be_gallery_root'];
    ?>
</option>
			<option value="3"<?php 
    is_selected(3, $dir_gallery);
    ?>
><?php 
    echo $BL['be_gallery_directory'];
    ?>
</option>
		</select></td>
	</tr>


	<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8"></td></tr>

	<tr>
		<td align="right" class="v09">&nbsp;<?php 
    echo $BL['be_cnt_sorting'];
    ?>
开发者ID:EDVLanger,项目名称:phpwcms,代码行数:31,代码来源:files.private.editdir.tmpl.php

示例5: EnumUnion

<?php 
// ----------------------------------------------------------------------------------------------------
// Список боевых союзов
$unions = EnumUnion($GlobalUser['player_id']);
if ($mission_acs && count($unions) > 0) {
    ?>

    <tr height="20">
     <td class="c" colspan="3">Боевые союзы</td>
  </tr>
  <tr height="20">
   <th colspan="3">
    <select name="union2" >
<?php 
    foreach ($unions as $i => $union) {
        echo "          <option value=\"" . $union['union_id'] . "\" " . is_selected($union['union_id']) . ">" . $union['name'] . "</option>\n";
    }
    ?>
           </select> 
      </th>
  </tr>

  <tr height="20">
  <th>&nbsp; </th>
  </tr>

<?php 
}
?>

<?php 
开发者ID:Ansty93,项目名称:ogame-opensource,代码行数:31,代码来源:flotten3.php

示例6: while

<table>
<input type="hidden" name="kode_sk" id="kode_sk" size="3" value="<?php 
echo $kode_sk;
?>
">
<tr>
	<td>Lokasi</td><td>:</td>
	<td>
		<select name="kode_lokasi" id="kode_lokasi">
			<option value=""> -- Pilih -- </option>
			<?php 
$obj = $conn->Execute("SELECT KODE_LOKASI, LOKASI FROM LOKASI");
while (!$obj->EOF) {
    $ov = $obj->fields['KODE_LOKASI'];
    $on = $obj->fields['LOKASI'];
    echo "<option value='{$ov}' " . is_selected($ov, $kode_lokasi) . "> {$on}  </option>";
    $obj->movenext();
}
?>
		</select>
	</td>
</tr>

<tr>
	<td>Harga Tanah / m&sup2;</td><td>:</td>
	<td><input type="text" name="harga_tanah" id="harga_tanah" value="<?php 
if (!isset($harga_tanah)) {
    $harga_tanah = 0;
}
echo to_money(intval($harga_tanah));
?>
开发者ID:rizafr,项目名称:market_ancol,代码行数:31,代码来源:harga_tanah_popup.php

示例7: foreach

			<div class="order-step__section__block--time">

				<h3 class="order__section__sub-title">Spread visitors over time</h3>

				<!-- Spread over time selection; works with chosen.js -->
				<select data-placeholder="Select days" name="properties[spread]" class="chosen-select" style="width:350px;" tabindex="2">
					<option value=""></option>
					<?php 
    foreach ($days as $item) {
        ?>
						<option value="<?php 
        print trim($item->name);
        ?>
" <?php 
        print is_selected($_REQUEST['properties']['spread-over-time'], trim($item->name));
        ?>
><?php 
        print $item->name;
        ?>
</option>
					<?php 
    }
    ?>
				</select>
				<p class="extra--info"><i class="material-icons">info_outline</i>Choose between 1-30 days</p>

			</div>

			<div class="order-step__section__block--time">
开发者ID:sebastiaandekker,项目名称:sd,代码行数:29,代码来源:woocommerce-singleproduct-edits.php

示例8: while

	<td><?php 
echo $id;
?>
</td>
</tr>
<tr>
	<td>App</td><td>:</td>
	<td>
		<select name="app_id" id="app_id">
			<option value=""> -- Pilih -- </option>
			<?php 
$obj = $conn->Execute("SELECT APP_ID, APP_NAME FROM APPLICATIONS ORDER BY APP_ID ASC");
while (!$obj->EOF) {
    $ov = $obj->fields['APP_ID'];
    $on = $obj->fields['APP_NAME'];
    echo "<option value='{$ov}' " . is_selected($ov, $app_id) . "> {$on} ({$ov}) </option>";
    $obj->movenext();
}
?>
		</select>
	</td>
</tr>
<tr>
	<td>Modul</td><td>:</td>
	<td><input type="text" name="modul_name" id="modul_name" size="50" value="<?php 
echo $modul_name;
?>
"></td>
</tr>
<tr>
	<td colspan="2"></td>
开发者ID:rizafr,项目名称:market_ancol,代码行数:31,代码来源:menus_popup.php

示例9: is_selected

"></td>
</tr>
<tr>
	<td colspan="3">Redistribusi SPP : 
	<select name="redistribusi" id="redistribusi">
		<option value="">   -- Redistribusi SPP --   </option>
		<option value="1" <?php 
echo is_selected('1', $redistribusi);
?>
>Tidak</option>
		<option value="2" <?php 
echo is_selected('2', $redistribusi);
?>
>Dalam Proses</option>
		<option value="3" <?php 
echo is_selected('3', $redistribusi);
?>
>Selesai</option>
	</select>
	<input type="text" name="tgl_redistribusi" id="tgl_redistribusi" size="10" class="apply dd-mm-yyyy" value="<?php 
echo $tgl_redistribusi;
?>
">
	</td>
</tr>
</table>

<table class="t-popup pad2 w100">
<tr>
	<td width="100" class="text-right">Keterangan </td><td>:</td>
	<td><textarea name="keterangan" id="keterangan" rows="2" cols="100"><?php 
开发者ID:rizafr,项目名称:market_ancol,代码行数:31,代码来源:spp_spp+-+Copy.php

示例10: is_selected

?>
> Giro </option>
		<option value="4" <?php 
echo is_selected('4', $via);
?>
> Transfer </option>
		<option value="5" <?php 
echo is_selected('5', $via);
?>
> ATM </option>
		<option value="6" <?php 
echo is_selected('6', $via);
?>
> Kartu Debit </option>
		<option value="7" <?php 
echo is_selected('7', $via);
?>
> Kartu Kredit </option>
	</select>
	</td>
	-->
</tr>
<tr>
	<td colspan ="2">Catatan Collection : <textarea type="text" name="catatan" id="catatan" readonly="readonly" rows="3" cols="100"><?php 
echo $catatan;
?>
</textarea></td>
</tr>
<tr>
	<td colspan ="2">Catatan Kwitansi : <textarea type="text" name="catatan_kwt" id="catatan_kwt" rows="6" cols="100"><?php 
echo $catatan_kwt;
开发者ID:rizafr,项目名称:market_ancol,代码行数:31,代码来源:kuitansi_lain_popup_detail.php

示例11: is_selected

echo $pluginDesc;
?>
" size="64" maxlength="512" id="desc" name="desc" />
        </td>
    </tr><tr>
        <th style="width:30%;text-align:right;">
            Location:<br />
        </th>
        <td style="text-align:left;">
            <select id="location" name="location" multiple="multiple">
                <option value="/usr/local/nagios/libexec/" <?php 
echo is_selected($pluginLocation, '/usr/local/nagios/libexec/');
?>
>/usr/local/nagios/libexec/</option>
                <option value="/usr/lib/nagios/plugins/" <?php 
echo is_selected($pluginLocation, '/usr/lib/nagios/plugins/');
?>
>/usr/lib/nagios/plugins/</option>
                <option value=""></option>
            </select>
        </td>
    </tr><tr>
        <th style="width:30%;text-align:right;">
            File:
        </th>
        <td style="text-align:left;">
            <input type="file" id="file" name="file" />
        </td>
    </tr>
<?php 
if ($action == 'modify_plugin') {
开发者ID:NetworkCedu,项目名称:saigon,代码行数:31,代码来源:nagios_plugin_action_stage.php

示例12: teacher_list_select

function teacher_list_select($current, $input_name = 'teacher', $input_id = 'teacher')
{
    echo "<select name=\"{$input_name}\" id=\"{$input_id}\">";
    $all_teachers = _get_teachers();
    foreach ($all_teachers as $teacher) {
        setup_userdata($teacher);
        echo '<option ' . is_selected(get_user_id() == $current) . ' value="' . get_user_id() . '">' . get_user_fullname() . '</option>';
    }
    echo "</select>";
}
开发者ID:HaThuy92,项目名称:hathithuy_quanlytinchi,代码行数:10,代码来源:user.php

示例13: is_selected

    ?>


	<p>
		<label><?php 
    echo $BL['be_priorize'];
    ?>
</label>
		<select name="cnt_prio" id="cnt_prio" style="width:auto" title="<?php 
    echo $BL['be_priorize'];
    ?>
">
		<?php 
    for ($x = 30; $x >= -30; $x--) {
        echo '	<option value="' . $x . '"';
        is_selected($x, $news->data['cnt_prio']);
        echo '>' . ($x == 0 ? $BL['be_cnt_default'] : $x) . '</option>' . LF;
    }
    ?>
		</select>
	</p>

	<div class="paragraph"><?php 
    $wysiwyg_editor = array('value' => $news->data['cnt_text'], 'field' => 'cnt_text', 'height' => '250px', 'width' => '536px', 'rows' => '10', 'editor' => $_SESSION["WYSIWYG_EDITOR"], 'lang' => 'en');
    include PHPWCMS_ROOT . '/include/inc_lib/wysiwyg.editor.inc.php';
    ?>
</div>

	<div class="paragraph filled border_bottom border_top">

		<table cellpadding="0" cellspacing="0" border="0" summary="">
开发者ID:Ideenkarosell,项目名称:phpwcms,代码行数:31,代码来源:news.tmpl.php

示例14: get_category_list

        <div class="content">
            <!--START MENU CATEGORIES-->
            <ul class="categories">
                <li class="main"><a href="#" class="selected"><?php 
echo $varmaincat;
?>
</a></li>

                <?php 
//fetch category list
$data_menu = get_category_list($type, 200, 1);
if ($data_menu["result"]) {
    foreach ($data_menu["result"] as $row) {
        $idcat = $row->id;
        $namecat = $row->category_name;
        echo "<li><a " . is_selected($idcat, $cat, "class=\"selected\"", "") . " href=\"/products/list/?type=" . $type . "&amp;cat=" . $idcat . "#wrapproduct\">" . $namecat . "</a></li>";
    }
}
//end fetch category list
?>
                       
            </ul>
            <!--END MENU CATEGORIES-->      

            <!--START PRODUCT ITEM-->
            <div class="wraplistitem">
                <ul class="productitem">
                    <?php 
$data = get_products_list($type, $cat, $rowspage, $p);
$maxpage = 1;
if (isset($data["maxpage"])) {
开发者ID:nochtavio,项目名称:momocuppy,代码行数:31,代码来源:index.php

示例15: while

"> Watt</td>
</tr>
<tr>
	<td>Jenis PPJB</td><td>: <input type="hidden" id="kode_jenis_ppjb" value="<?php 
echo $jenis_ppjb;
?>
"></td>
	<td>
	<select name="jenis_ppjb" id="jenis_ppjb">
		<option value=""> -- Jenis PPJB -- </option>
		<?php 
$obj = $conn->execute("\n\t\tSELECT *\n\t\tFROM \n\t\t\tCS_JENIS_PPJB\n\t\t");
while (!$obj->EOF) {
    $ov = $obj->fields['KODE_JENIS'];
    $on = $obj->fields['NAMA_JENIS'];
    echo "<option value='{$ov}'" . is_selected($ov, $jenis_ppjb) . "> {$on} ({$ov}) </option>";
    $obj->movenext();
}
?>
	</select>
	</td>
</tr>
<tr>
	<td>Catatan</td><td>:</td>
</tr>
<tr>
	<td colspan=3><textarea name="catatan" id="catatan" rows="3" cols="75"><?php 
echo $catatan;
?>
</textarea></td>
</tr>
开发者ID:rizafr,项目名称:market_ancol,代码行数:31,代码来源:ppjb_popup.php


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