本文整理汇总了PHP中form_text_input函数的典型用法代码示例。如果您正苦于以下问题:PHP form_text_input函数的具体用法?PHP form_text_input怎么用?PHP form_text_input使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了form_text_input函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: date
echo '<td title="' . $file['name'][$i] . ' ' . TB_DATE . ': ' . date($tinybrowser['dateformat'], $file['modified'][$i]) . '">' . truncate_text($file['name'][$i], 30) . '</td>';
}
echo '<td>' . bytestostring($file['size'][$i], 1) . '</td><td>' . $file['type'][$i] . '</td>' . '<td>';
form_hidden_input('actionfile[' . $i . ']', $file['name'][$i]);
switch ($actionnow) {
case 'delete':
echo '<input class="del" type="checkbox" name="deletefile[' . $i . ']" value="1" />';
break;
case 'rename':
$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);
示例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>'
.'<th><a href="?type='.$typenow.$passfolder.$passfeid.$sortbyget['size'].'"'.$thclass['size'].'>'.TB_SIZE.'</a></th>'
示例3: date
echo '<td>' . $dirs[$i][4] . '</td><td>' . date($tinybrowser['dateformat'], $dirs[$i][5]) . '</td>' . '<td>';
form_hidden_input('actionfolder[' . $i . ']', $dirs[$i][0]);
switch ($actionnow) {
case 'create':
echo '→ ';
form_text_input('createfolder[' . $i . ']', false, '', 30, 120);
break;
case 'delete':
$disabledel = $dirs[$i][4] > 0 ? ' DISABLED' : '';
if (!$disable) {
echo '<input class="del" type="checkbox" name="deletefolder[' . $i . ']" value="1"' . $disabledel . ' />';
}
break;
case 'rename':
if (!$disable) {
form_text_input('renamefolder[' . $i . ']', false, $dirs[$i][3], 30, 120);
}
break;
default:
// do nothing
}
echo "</td></tr>\n";
}
echo "</table></div>\n" . '<div class="pushright">';
if ($tinybrowser['allowdelete'] && $tinybrowser['allowedit']) {
form_hidden_input('editaction', $actionnow);
form_submit_button('commit', $actionhead . ' ' . TB_FOLDERS, 'edit');
}
?>
</div></fieldset></div></div>
</body>
示例4: explode
.'<td>';
form_hidden_input('actionfile['.$i.']',$file['name'][$i]);
switch($actionnow)
{
case 'delete':
echo '<input class="del" type="checkbox" name="deletefile['.$i.']" value="1" />';
break;
case 'rename':
// get file extension
$nameparts = explode('.',$file['name'][$i]);
$ext = end($nameparts);
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;
case 'move':
echo '<input class="del" type="checkbox" name="movefile['.$i.']" value="1" />';
break;
default:
// do nothing
}
echo "</td></tr>\n";
}
echo "</table></div>\n".'<div class="pushright">';
if($tinybrowser['allowdelete'] || $tinybrowser['allowedit'])