本文整理汇总了PHP中jwTabs函数的典型用法代码示例。如果您正苦于以下问题:PHP jwTabs函数的具体用法?PHP jwTabs怎么用?PHP jwTabs使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了jwTabs函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: applet_content
//.........这里部分代码省略.........
$style = '';
while ($r = $inDB->fetch_assoc($result2)) {
$ord[] = $r['group_id'];
}
}
}
?>
<input name="is_public" type="checkbox" id="is_public" onclick="checkGroupList()" value="1" <?php
echo $public;
?>
/>
</td>
<td><label for="is_public"><strong><?php
echo $_LANG['AD_SHARE'];
?>
</strong></label></td>
</tr>
</table>
<div style="padding:5px">
<span class="hinttext">
<?php
echo $_LANG['AD_IF_NOTED'];
?>
</span>
</div>
<div style="margin-top:10px;padding:5px;padding-right:0px;" id="grp">
<div>
<strong><?php
echo $_LANG['AD_GROUPS_VIEW'];
?>
</strong><br />
<span class="hinttext">
<?php
echo $_LANG['AD_SELECT_MULTIPLE_CTRL'];
?>
</span>
</div>
<div>
<?php
echo '<select style="width: 99%" name="showfor[]" id="showin" size="6" multiple="multiple" ' . $style . '>';
if ($inDB->num_rows($result)) {
while ($item = $inDB->fetch_assoc($result)) {
echo '<option value="' . $item['id'] . '"';
if ($do == 'edit') {
if (inArray($ord, $item['id'])) {
echo 'selected="selected"';
}
}
echo '>';
echo $item['title'] . '</option>';
}
}
echo '</select>';
?>
</div>
</div>
{/tabs}
<?php
echo jwTabs(ob_get_clean());
?>
</td>
</tr>
</table>
<p>
<input name="add_mod" type="submit" id="add_mod" <?php
if ($do == 'add') {
echo 'value="' . $_LANG['AD_CREATE_CONTENT'] . '"';
} else {
echo 'value="' . $_LANG['AD_SAVE_CONTENT'] . '"';
}
?>
/>
<input name="back" type="button" id="back" value="<?php
echo $_LANG['CANCEL'];
?>
" onclick="window.history.back();"/>
<input name="do" type="hidden" id="do" <?php
if ($do == 'add') {
echo 'value="submit"';
} else {
echo 'value="update"';
}
?>
/>
<?php
if ($do == 'edit') {
echo '<input name="id" type="hidden" value="' . $mod['id'] . '" />';
}
?>
</p>
</form>
<?php
}
}
示例2: jwTabs
echo $_LANG['YES'];
?>
</label>
<label><input name="watermark" type="radio" value="0" <?php
if (!$cfg['watermark']) {
echo 'checked="checked"';
}
?>
/> <?php
echo $_LANG['NO'];
?>
</label>
</td>
</tr>
</table>
{/tabs}
<?php
echo jwTabs(ob_get_clean());
?>
<p>
<input name="opt" type="hidden" value="saveconfig" />
<input name="save" type="submit" id="save" value="<?php
echo $_LANG['SAVE'];
?>
" />
<input name="back" type="button" id="back" value="<?php
echo $_LANG['CANCEL'];
?>
" onclick="window.location.href='index.php?view=components';"/>
</p>
</form>
示例3: applet_menu
//.........这里部分代码省略.........
}
echo '</select>';
?>
</div>
</div>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="checklist" style="margin-top:5px">
<tr>
<td width="20">
<input name="is_lax" type="checkbox" id="is_lax" value="1" <?php
if (@$mod['is_lax']) {
?>
checked="checked"<?php
}
?>
/>
</td>
<td><label for="is_lax"><strong><?php
echo $_LANG['AD_ONLY_CHILD_ITEM'];
?>
</strong></label></td>
</tr>
</table>
{tab=<?php
echo $_LANG['AD_MENU'];
?>
}
<div style="padding:5px;padding-right:0px;">
<div>
<strong><?php
echo $_LANG['AD_MENU_TO_VIEW'];
?>
</strong><br />
<span class="hinttext">
<?php
echo $_LANG['AD_SELECT_MULTIPLE_CTRL'];
?>
</span>
</div>
<div>
<select style="width: 99%" name="menu[]" size="9" multiple="multiple">
<?php
foreach ($menu_list as $menu) {
?>
<option value="<?php
echo $menu['id'];
?>
" <?php
if (@in_array($menu['id'], @$mod['menu'])) {
echo 'selected="selected"';
}
?>
>
<?php
echo $menu['title'];
?>
</option>
<?php
}
?>
</select>
</div>
</div>
{/tabs}
<?php
echo jwTabs(ob_get_clean());
?>
</td>
</tr>
</table>
<p>
<input name="add_mod" type="button" onclick="submitItem()" id="add_mod" value="<?php
echo $_LANG['SAVE'];
?>
" />
<input name="back" type="button" id="back" value="<?php
echo $_LANG['CANCEL'];
?>
" onclick="window.location.href='index.php?view=menu';" />
<input name="do" type="hidden" id="do" <?php
if ($do == 'add') {
echo 'value="submit"';
} else {
echo 'value="update"';
}
?>
/>
<?php
if ($do == 'edit') {
echo '<input name="id" type="hidden" value="' . $mod['id'] . '" />';
}
?>
</p>
</form>
<?php
}
}
示例4: applet_modules
//.........这里部分代码省略.........
$style = 'disabled="disabled"';
$public = 'checked="checked"';
if ($do == 'edit') {
if ($mod['access_list']) {
$public = '';
$style = '';
$access_list = $inCore->yamlToArray($mod['access_list']);
}
}
?>
<input name="is_public" type="checkbox" id="is_public" onclick="checkAccesList()" value="1" <?php
echo $public;
?>
/>
</td>
<td><label for="is_public"><strong><?php
echo $_LANG['AD_SHARE'];
?>
</strong></label></td>
</tr>
</table>
<div style="padding:5px">
<span class="hinttext">
<?php
echo $_LANG['AD_IF_CHECKED'];
?>
</span>
</div>
<div style="margin-top:10px;padding:5px;padding-right:0px;">
<div>
<strong><?php
echo $_LANG['AD_GROUPS_VIEW'];
?>
</strong><br />
<span class="hinttext">
<?php
echo $_LANG['AD_SELECT_MULTIPLE_CTRL'];
?>
</span>
</div>
<div>
<?php
echo '<select style="width: 99%" name="allow_group[]" id="allow_group" size="6" multiple="multiple" ' . $style . '>';
if ($groups) {
foreach ($groups as $group) {
echo '<option value="' . $group['id'] . '"';
if ($do == 'edit' && $mod['access_list']) {
if (inArray($access_list, $group['id'])) {
echo 'selected="selected"';
}
}
echo '>';
echo $group['title'] . '</option>';
}
}
echo '</select>';
?>
</div>
</div>
{/tabs}
<?php
echo jwTabs(ob_get_clean());
?>
</td>
</tr>
</table>
<p>
<input name="add_mod" type="submit" id="add_mod" value="<?php
echo $_LANG['SAVE'];
?>
" />
<input name="back" type="button" id="back" value="<?php
echo $_LANG['CANCEL'];
?>
" onclick="window.history.back();" />
<input name="do" type="hidden" id="do" <?php
if ($do == 'add') {
echo 'value="submit"';
} else {
echo 'value="update"';
}
?>
/>
<?php
if ($do == 'edit') {
echo '<input name="id" type="hidden" value="' . $mod['id'] . '" />';
}
?>
</p>
</form>
<?php
}
//============================================================================//
//============================================================================//
}
示例5: applet_cats
//.........这里部分代码省略.........
/>
</td>
<td><label for="is_public"><strong><?php
echo $_LANG['AD_SHARE'];
?>
</strong></label></td>
</tr>
</table>
<div style="padding:5px">
<span class="hinttext">
<?php
echo $_LANG['AD_IF_NOTED'];
?>
</span>
</div>
<div style="margin-top:10px;padding:5px;padding-right:0px;" id="grp">
<div>
<strong><?php
echo $_LANG['AD_GROUPS_VIEW'];
?>
</strong><br />
<span class="hinttext">
<?php
echo $_LANG['AD_SELECT_MULTIPLE_CTRL'];
?>
</span>
</div>
<div>
<?php
echo '<select style="width: 99%" name="showfor[]" id="showin" size="6" multiple="multiple" ' . $style . '>';
if ($inDB->num_rows($result)) {
while ($item = $inDB->fetch_assoc($result)) {
echo '<option value="' . $item['id'] . '"';
if ($do == 'edit') {
if (inArray($ord, $item['id'])) {
echo 'selected="selected"';
}
}
echo '>';
echo $item['title'] . '</option>';
}
}
echo '</select>';
?>
</div>
</div>
{/tabs}
<?php
echo jwTabs(ob_get_clean());
?>
</td>
</tr>
</table>
<p>
<input name="add_mod" type="submit" id="add_mod" <?php
if ($do == 'add') {
echo 'value="' . $_LANG['AD_SAVE_SECTION'] . '"';
} else {
echo 'value="' . $_LANG['AD_SAVE_SECTION'] . '"';
}
?>
/>
<input name="back" type="button" id="back" value="<?php
echo $_LANG['CANCEL'];
?>
" onclick="window.history.back();"/>
<input name="do" type="hidden" id="do" <?php
if ($do == 'add') {
echo 'value="submit"';
} else {
echo 'value="update"';
}
?>
/>
<?php
if ($do == 'edit') {
echo '<input name="id" type="hidden" value="' . $mod['id'] . '" />';
}
?>
</p>
</form>
<script type="text/javascript">
function choosePhotoAlbum(){
id = $('select[name=album_id]').val();
if(id != 0){
$('#con_photoalbum').fadeIn();
} else {
$('#con_photoalbum').hide();
}
}
</script>
<?php
}
}
示例6: applet_cats
//.........这里部分代码省略.........
/>
</td>
<td><label for="is_public"><strong><?php
echo $_LANG['AD_SHARE'];
?>
</strong></label></td>
</tr>
</table>
<div style="padding:5px">
<span class="hinttext">
<?php
echo $_LANG['AD_IF_NOTED'];
?>
</span>
</div>
<div style="margin-top:10px;padding:5px;padding-right:0px;" id="grp">
<div>
<strong><?php
echo $_LANG['AD_GROUPS_VIEW'];
?>
</strong><br />
<span class="hinttext">
<?php
echo $_LANG['AD_SELECT_MULTIPLE_CTRL'];
?>
</span>
</div>
<div>
<?php
echo '<select style="width: 99%" name="showfor[]" id="showin" size="6" multiple="multiple" ' . $style . '>';
if ($inDB->num_rows($result)) {
while ($item = $inDB->fetch_assoc($result)) {
echo '<option value="' . $item['id'] . '"';
if ($do == 'edit') {
if (inArray($ord, $item['id'])) {
echo 'selected="selected"';
}
}
echo '>';
echo $item['title'] . '</option>';
}
}
echo '</select>';
?>
</div>
</div>
{/tabs}
<?php
echo jwTabs(ob_get_clean());
?>
</td>
</tr>
</table>
<p>
<input name="add_mod" type="submit" id="add_mod" <?php
if ($do == 'add') {
echo 'value="' . $_LANG['AD_SAVE_SECTION'] . '"';
} else {
echo 'value="' . $_LANG['AD_SAVE_SECTION'] . '"';
}
?>
/>
<input name="back" type="button" id="back" value="<?php
echo $_LANG['CANCEL'];
?>
" onclick="window.history.back();"/>
<input name="do" type="hidden" id="do" <?php
if ($do == 'add') {
echo 'value="submit"';
} else {
echo 'value="update"';
}
?>
/>
<?php
if ($do == 'edit') {
echo '<input name="id" type="hidden" value="' . $mod['id'] . '" />';
}
?>
</p>
</form>
<script type="text/javascript">
function choosePhotoAlbum(){
id = $('select[name=album_id]').val();
if(id != 0){
$('#con_photoalbum').fadeIn();
} else {
$('#con_photoalbum').hide();
}
}
</script>
<?php
}
}