本文整理汇总了PHP中form_hidden_input函数的典型用法代码示例。如果您正苦于以下问题:PHP form_hidden_input函数的具体用法?PHP form_hidden_input怎么用?PHP form_hidden_input使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了form_hidden_input函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: end
$ext = '.' . end(explode('.', $file['name'][$i]));
form_hidden_input('renameext[' . $i . ']', $ext);
form_text_input('renamefile[' . $i . ']', false, basename($file['name'][$i], $ext), 30, 120);
echo $ext;
break;
case 'resize':
form_text_input('resizefile[' . $i . ']', false, '', 4, 4);
form_select($selectresize, 'resizetype[' . $i . ']', false, '', false);
break;
case 'rotate':
echo '<img src="img/rotate_c.gif" alt="' . TB_ROTATECW . '" /><input class="rad" type="radio" name="rotatefile[' . $i . ']" value="clock"><img src="img/rotate_ac.gif" alt="' . TB_ROTATECCW . '" /><input class="rad" type="radio" name="rotatefile[' . $i . ']" value="anticlock">' . TB_NONE . '<input class="rad" type="radio" name="rotatefile[' . $i . ']" value="none" checked>';
break;
default:
// do nothing
}
echo "</td></tr>\n";
}
echo "</table></div>\n" . '<div class="pushright">';
if ($tinybrowser['allowdelete']) {
form_hidden_input('sortby', $sortbynow);
form_hidden_input('sorttype', $sorttypenow);
form_hidden_input('find', $findnow);
form_hidden_input('showpage', $showpagenow);
form_hidden_input('editaction', $actionnow);
form_submit_button('committ', $actionhead . ' ' . TB_FILES, 'edit');
}
?>
</div></fieldset></div></div>
</body>
</html>
示例2: ceil
// Show page select if pagination is set
if($tinybrowser['pagination']>0)
{
$pagelimit = ceil($num_of_files/$tinybrowser['pagination'])+1;
$page = array();
for($i=1;$i<$pagelimit;$i++)
{
$page[] = array($i,TB_PAGE.' '.$i);
}
if($i>2) form_select($page,'showpage',TB_SHOW,$showpagenow,true);
}
?></div><div class="pushright"><?php
form_hidden_input('sortby',$sortbynow);
form_hidden_input('sorttype',$sorttypenow);
form_text_input('find',false,$findnow,25,50);
form_submit_button('search',TB_SEARCH,'');
?></div>
<?php
// if image show dimensions header
if($typenow=='image')
{
$imagehead = '<th><a href="?type='.$typenow.$passfolder.$passfeid.$sortbyget['dimensions'].'"'.$thclass['dimensions'].'>'.TB_DIMENSIONS.'</a></th>';
}
else $imagehead = '';
echo '<div class="tabularwrapper"><table class="browse">'
.'<tr><th><a href="?type='.$typenow.$passfolder.$passfeid.$sortbyget['name'].'"'.$thclass['name'].'>'.TB_FILENAME.'</a></th>'
示例3: form_text_input
form_text_input('renamefile[' . $i . ']', false, basename($file['name'][$i], $ext), 30, 120);
echo $ext;
break;
case 'resize':
form_text_input('resizefile[' . $i . ']', false, '', 4, 4);
form_select($selectresize, 'resizetype[' . $i . ']', false, '', false);
break;
case 'rotate':
echo '<img src="img/rotate_c.gif" alt="' . TB_ROTATECW . '" /><input class="rad" type="radio" name="rotatefile[' . $i . ']" value="clock"><img src="img/rotate_ac.gif" alt="' . TB_ROTATECCW . '" /><input class="rad" type="radio" name="rotatefile[' . $i . ']" value="anticlock">' . TB_NONE . '<input class="rad" type="radio" name="rotatefile[' . $i . ']" value="none" checked>';
break;
case 'move':
echo '<input class="del" type="checkbox" name="movefile[' . $i . ']" value="1" />';
break;
default:
}
echo "</td></tr>\n";
}
echo "</table></div>\n" . '<div class="pushright">';
if ($tinybrowser['allowdelete'] || $tinybrowser['allowedit']) {
form_hidden_input('sortby', $sortbynow);
form_hidden_input('sorttype', $sorttypenow);
form_hidden_input('find', $findnow);
form_hidden_input('showpage', $showpagenow);
form_hidden_input('action', $actionnow);
form_submit_button('commit', $actionhead . ' ' . TB_FILES, 'edit');
}
?>
</div></fieldset></div></div>
</body>
</html>
示例4: form_select
if ($_SESSION['tinybrowser']['allowfolders']) {
?>
<li id="folders_tab"><span><a href="folders.php?type=<?php
echo $typenow . $tokenget . $passfolder . $passfeid;
?>
"><?php
echo TB_FOLDERS;
?>
</a></span></li><?php
// Display folder select, if multiple exist
if (count($uploaddirs) > 1) {
?>
<li id="folder_tab" class="right"><span><?php
form_select($uploaddirs, 'folder', TB_FOLDERCURR, urlencode($foldernow), true);
if (!empty($_SESSION['post_tokens'])) {
form_hidden_input('tokenpost', end($_SESSION['post_tokens']));
}
?>
</span></li><?php
}
}
?>
</ul>
</div>
</form>
<div class="panel_wrapper">
<div id="general_panel" class="panel currentmod">
<fieldset>
<legend><?php
echo TB_UPLOADFILES;
?>