本文整理汇总了PHP中form_submit_button函数的典型用法代码示例。如果您正苦于以下问题:PHP form_submit_button函数的具体用法?PHP form_submit_button怎么用?PHP form_submit_button使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了form_submit_button函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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>
开发者ID:alexhandzhiev,项目名称:sifact,代码行数:30,代码来源:edit.php
示例2: switch
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>
</html>
开发者ID:cristminix,项目名称:cGRhbXRrcg-,代码行数:30,代码来源:folders.php
示例3: login_page
function login_page()
{
page_head("Login");
echo '<form role="form" action="hl.php" method="get">
<input type="hidden" name="action" value="login">
';
form_item("Authenticator:", "text", "auth", "");
form_submit_button("Submit");
page_tail();
}
开发者ID:pkgw,项目名称:hera-librarian,代码行数:10,代码来源:hl.php
示例4: ceil
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>'
.$imagehead
开发者ID:nyroDev,项目名称:nyroFwk,代码行数:31,代码来源:tinybrowser.php
示例5: form_input
<?php
echo form_input(pretty_card(array("id" => get_current_player())) . " suspecte", "suspect", $form, array("options" => option_array(select_suspects(), "id", "name", "card")));
echo form_input("avec l'arme", "weapon", $form, array("options" => option_array(select_weapons(), "id", "name", "card")));
echo form_input("dans la pièce", "room", $form, array("options" => option_array(select_rooms(), "id", "name", "card")));
echo form_input("mais le témoin", "witness", $form, array("options" => array_true_merge(option_array(select_players(), "id", "name", "card"), array(0 => ""))));
if (get_current_player() == my_player()) {
echo form_input("réfute avec", "evidence", $form, array("options" => option_array(select_types(), "id", "name", "type")));
} else {
echo "réfute";
}
?>
.
<br>
<?php
$turns = select_turns();
echo form_submit_button("Ok") . " " . link_to(path("skip", "game", game), "Suivant", array("class" => "btn btn-primary")) . " " . (!is_empty($turns) ? link_to(path("revert", "game", game), "Annuler le dernier coup", array("class" => "btn btn-primary")) : "");
开发者ID:aymericbouzy,项目名称:cluedo-solver,代码行数:17,代码来源:turn.php
注:本文中的form_submit_button函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论