本文整理汇总了PHP中html_edit函数的典型用法代码示例。如果您正苦于以下问题:PHP html_edit函数的具体用法?PHP html_edit怎么用?PHP html_edit使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_edit函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _tpl_act_changes
function _tpl_act_changes(&$event, $param)
{
global $TEXT;
global $PRE;
global $SUF;
if ('changes' != $event->data) {
return;
}
html_edit($TEXT);
echo '<br id="scroll__here" />';
html_diff(con($PRE, $TEXT, $SUF));
$event->preventDefault();
return;
}
示例2: tpl_content_core
/**
* Default Action of TPL_ACT_RENDER
*
* @return bool
*/
function tpl_content_core()
{
global $ACT;
global $TEXT;
global $PRE;
global $SUF;
global $SUM;
global $IDX;
global $INPUT;
switch ($ACT) {
case 'show':
html_show();
break;
/** @noinspection PhpMissingBreakStatementInspection */
/** @noinspection PhpMissingBreakStatementInspection */
case 'locked':
html_locked();
case 'edit':
case 'recover':
html_edit();
break;
case 'preview':
html_edit();
html_show($TEXT);
break;
case 'draft':
html_draft();
break;
case 'search':
html_search();
break;
case 'revisions':
html_revisions($INPUT->int('first'));
break;
case 'diff':
html_diff();
break;
case 'recent':
html_recent($INPUT->extract('first')->int('first'), $INPUT->str('show_changes'));
break;
case 'index':
html_index($IDX);
#FIXME can this be pulled from globals? is it sanitized correctly?
break;
case 'backlink':
html_backlinks();
break;
case 'conflict':
html_conflict(con($PRE, $TEXT, $SUF), $SUM);
html_diff(con($PRE, $TEXT, $SUF), false);
break;
case 'login':
html_login();
break;
case 'register':
html_register();
break;
case 'resendpwd':
html_resendpwd();
break;
case 'denied':
print p_locale_xhtml('denied');
break;
case 'profile':
html_updateprofile();
break;
case 'admin':
tpl_admin();
break;
case 'subscribe':
tpl_subscribe();
break;
case 'media':
tpl_media();
break;
default:
$evt = new Doku_Event('TPL_ACT_UNKNOWN', $ACT);
if ($evt->advise_before()) {
msg("Failed to handle command: " . hsc($ACT), -1);
}
$evt->advise_after();
unset($evt);
return false;
}
return true;
}
示例3: handle_tpl_act_render
public function handle_tpl_act_render(Doku_Event &$event, $param)
{
global $ID;
global $INFO;
global $DOKUTRANSLATE_EDITFORM;
if (!@file_exists(metaFN($ID, '.translate'))) {
return;
}
# Disable TOC on translated pages
$INFO['prependTOC'] = false;
if (in_array($event->data, array('edit', 'preview'))) {
# Take the event over
$event->preventDefault();
# Save the edit form for later
html_edit();
$DOKUTRANSLATE_EDITFORM = ob_get_clean();
ob_start();
# Render the page (renderer inserts saved edit form
# and preview in the right cell)
echo p_render('xhtml', p_cached_instructions(wikiFN($ID)), $INFO);
}
}
示例4: tpl_content_core
function tpl_content_core()
{
global $ACT;
global $TEXT;
global $PRE;
global $SUF;
global $SUM;
global $IDX;
switch ($ACT) {
case 'show':
html_show();
break;
case 'locked':
html_locked();
case 'edit':
case 'recover':
html_edit();
break;
case 'preview':
html_edit();
html_show($TEXT);
break;
case 'draft':
html_draft();
break;
case 'search':
html_search();
break;
case 'revisions':
$first = isset($_REQUEST['first']) ? intval($_REQUEST['first']) : 0;
html_revisions($first);
break;
case 'diff':
html_diff();
break;
case 'recent':
if (is_array($_REQUEST['first'])) {
$_REQUEST['first'] = array_keys($_REQUEST['first']);
$_REQUEST['first'] = $_REQUEST['first'][0];
}
$first = is_numeric($_REQUEST['first']) ? intval($_REQUEST['first']) : 0;
html_recent($first);
break;
case 'index':
html_index($IDX);
#FIXME can this be pulled from globals? is it sanitized correctly?
break;
case 'backlink':
html_backlinks();
break;
case 'conflict':
html_conflict(con($PRE, $TEXT, $SUF), $SUM);
html_diff(con($PRE, $TEXT, $SUF), false);
break;
case 'login':
html_login();
break;
case 'register':
html_register();
break;
case 'resendpwd':
html_resendpwd();
break;
case 'denied':
print p_locale_xhtml('denied');
break;
case 'profile':
html_updateprofile();
break;
case 'admin':
tpl_admin();
break;
case 'subscribe':
tpl_subscribe();
break;
default:
$evt = new Doku_Event('TPL_ACT_UNKNOWN', $ACT);
if ($evt->advise_before()) {
msg("Failed to handle command: " . hsc($ACT), -1);
}
$evt->advise_after();
unset($evt);
return false;
}
return true;
}
示例5: html_edit_m
function html_edit_m($fields, $sizes, $data, $custom)
{
$i = 0;
foreach ($fields as $key => $title) {
html_edit($title, $key, $sizes[$i], $data[$key], $custom);
$i++;
}
}
示例6: foreach
</div>
<form id="sets" method="post" action="sets.php">
<input name="save" type="hidden" value="1"/>
<table column=2 width=400>
<?
$i=0;
$frks=array("","shtrihm","shtrihl",'ASPD');
foreach ($cIce->ice_sets as $k=>$v){
++$i;
if ($i==1){echo "<tr>";}
echo "<td>";
if ($k=='typedev'){
echo "$k<br/>";
html_select($k,$frks,$v);
}else{
html_edit($k,$k,20,$v,'');}
echo "</td>";
if ($i==2){echo "</tr>";$i=0;}
}
?>
</table>
<input name="bt" type="submit" value="Сохранить"/>
</form>
<form id="test" method="post" action="sets.php">
Текст для теста <br/>
<textarea rows="10" cols="45" name="text"></textarea>
<input name="bt2" type="submit" value="Печать"/>
<input name="test" type="hidden" value="1"/>
</form>
<form id="info" method="post" action="sets.php">
<input name="info" type="hidden" value="1"/>