当前位置: 首页>>代码示例>>PHP>>正文


PHP eh函数代码示例

本文整理汇总了PHP中eh函数的典型用法代码示例。如果您正苦于以下问题:PHP eh函数的具体用法?PHP eh怎么用?PHP eh使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了eh函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: viewTxtFile

/**
 * ファイル内容を読み込んで表示する関数
 *
 * @return  void
 */
function viewTxtFile($file, $encode)
{
    global $_info_msg_ht;
    if ($file == '') {
        die('Error: file が指定されていません');
    }
    $filename = basename($file);
    $ptitle = $filename;
    $cont = file_get_contents($file);
    if ($encode == "EUC-JP") {
        $cont = mb_convert_encoding($cont, 'SJIS-win', 'eucJP-win');
    }
    $cont_area = htmlspecialchars($cont, ENT_QUOTES);
    // HTMLプリント
    ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja">
<head>
<?php 
    P2View::printExtraHeadersHtml();
    ?>
	<title><?php 
    eh($ptitle);
    ?>
</title>
</head>
<body onLoad="top.document.title=self.document.title;">
<?php 
    P2Util::printInfoHtml();
    ?>
<pre>
<?php 
    echo $cont_area;
    ?>
</pre>
</body></html>
<?php 
}
开发者ID:poppen,项目名称:p2,代码行数:43,代码来源:viewtxt.php

示例2: printIncludeCssHtml

    /**
     * @static
     * @access  public
     * @return  void  HTML出力
     */
    function printIncludeCssHtml($css)
    {
        global $_conf, $_login;
        $href = UriUtil::buildQueryUri('css.php', array('css' => $css, 'user' => $_login->user_u, 'skin' => $_conf['skin']));
        ?>
<link rel="stylesheet" type="text/css" href="<?php 
        eh($href);
        ?>
"><?php 
    }
开发者ID:poppen,项目名称:p2,代码行数:15,代码来源:P2View.php

示例3: eh

  </div>
</div>
<?php 
}
?>

<hr>
<form id="myform" class="well" method="post" action="<?php 
eh(url('thread/write'));
?>
">
  <label>Your name</label>
  <input type="text" class="span2" name="username" value="<?php 
eh(Param::get('username'));
?>
" required />
  <label>Comment</label>
  <textarea name="body" class="required"><?php 
eh(Param::get('body'));
?>
</textarea>
  <br />
  <input type="hidden" name="thread_id" value="<?php 
eh($thread->id);
?>
">
  <input type="hidden" name="page_next" value="write_end">
  <button type="submit" class="btn btn-primary">Submit</button>
</form>
<a class="btn btn-large btn-primary" href="/thread/index">back</a>
开发者ID:ry-htr,项目名称:dietcake-sample,代码行数:30,代码来源:view.php

示例4: eh

"><?php 
eh($comment->user->username);
?>
</a></strong>
                    <span class='pad'>
                        created at:
                        <?php 
eh($comment->created_at);
?>
                    </span>
                <?php 
if ($comment->created_at != $comment->modified_at) {
    ?>
                    modified at:
                    <?php 
    eh($comment->modified_at);
    ?>
                <?php 
}
?>
            </small>
        </div>
        <div>
            <?php 
echo readable_text($comment->body);
?>
        </div>
    </div>
</div>

开发者ID:rdaitan,项目名称:dc-board,代码行数:29,代码来源:view.php

示例5: function

<script type="text/javascript"> 
<!-- 
window.onload = function() { 
setTimeout(scrollTo, 100, 0, 1); 
} 
// --> 
</script> 
<title><?php 
eh($aThreadList->ptitle);
?>
</title>
</head>
<body>
<div class="toolbar">
<h1 id="pageTitle"><?php 
eh($aThreadList->ptitle);
?>
</h1>
</div>
<?php 
P2Util::printInfoHtml();
echo $filter_form_ht;
echo $hit_ht;
require_once P2_LIB_DIR . '/sb_toolbar_k.funcs.php';
// getShinchakuMatomeATag()
?>
<p><?php 
echo getShinchakuMatomeATag($aThreadList, $shinchaku_num);
?>
</p>
<?php 
开发者ID:poppen,项目名称:p2,代码行数:31,代码来源:sb_header_k.inc.php

示例6: eh

    ?>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"><?php 
}
?>
</head>
<body<?php 
echo P2View::getBodyAttrK();
echo $parent_reload;
?>
>
<?php 
if (!$_conf['ktai']) {
    //<p id="pan_menu"><a href="setting.php">設定</a> &gt; {$ptitle}</p>
    ?>
<p id="pan_menu"><?php 
    eh($ptitle);
    ?>
</p><?php 
}
P2Util::printInfoHtml();
$aborn_res_txt = $_conf['pref_dir'] . '/p2_aborn_res.txt';
$aborn_name_txt = $_conf['pref_dir'] . '/p2_aborn_name.txt';
$aborn_mail_txt = $_conf['pref_dir'] . '/p2_aborn_mail.txt';
$aborn_msg_txt = $_conf['pref_dir'] . '/p2_aborn_msg.txt';
$aborn_id_txt = $_conf['pref_dir'] . '/p2_aborn_id.txt';
$ng_name_txt = $_conf['pref_dir'] . '/p2_ng_name.txt';
$ng_mail_txt = $_conf['pref_dir'] . '/p2_ng_mail.txt';
$ng_msg_txt = $_conf['pref_dir'] . '/p2_ng_msg.txt';
$ng_id_txt = $_conf['pref_dir'] . '/p2_ng_id.txt';
?>
<p> ・<?php 
开发者ID:poppen,项目名称:p2,代码行数:31,代码来源:editpref.php

示例7: eh

">

<table id="header" width="100%" style="padding:0px 10px 0px 0px;">
	<tr>
		<td>
			<h3 class="thread_title"><?php 
    eh($ptitle);
    ?>
</h3>
		</td>
		<td><span style="font-size:small">容量 <?php 
    eh($logSizeSt);
    if ($maxLogSize) {
        ?>
(最大<?php 
        eh($maxLogSizeSt);
        ?>
)<?php 
    }
    ?>
</span></td>
		<td align="right"><?php 
    echo $toolbar_ht;
    ?>
</td>
		<td align="right" style="padding-left:12px;"><a href="#footer">▼</a></td>
	</tr>
</table>
<?php 
}
//==================================================================
开发者ID:poppen,项目名称:p2,代码行数:31,代码来源:read_res_hist.php

示例8: eh

<?php

$title = 'こんにちわ';
?>

<h2><?php 
eh($thread->title);
?>
</h2>
<p class="alert alert-success">
  You successfully wrote this comment.
</p>
<a href="<?php 
eh(url('thread/view', array('thread_id' => $thread->id)));
?>
">
  &larr; Back to thread
</a>
开发者ID:ry-htr,项目名称:dietcake-sample,代码行数:18,代码来源:write_end.php

示例9: eh

<?php

$title = 'Hello';
?>

<h1><?php 
eh($message);
?>
</h1>
<p>Use this code as a way to quick start any new project.</p>
开发者ID:cheyluna,项目名称:board_exercise,代码行数:10,代码来源:index.php

示例10: eh

">
            </div>
            <div class="six columns">
                <label for="last_name">Last name</label>
                <input class='u-full-width' type="text" name="last_name" id="last_name" value="<?php 
eh($auth_user->last_name);
?>
">
            </div>
        </div>
        <div class="row">
            <div class="six columns">
                <label for="password">Password</label>
                <input class='u-full-width' type="password" name="password" id="password" value="">
            </div>
            <div class="six columns">
                <label for="new_password">New Password</label>
                <input class='u-full-width' type="password" name="new_password" id="new_password" value="">
            </div>
        </div>
        <div class="row">
            <input type="hidden" name="page_next" value="edit_end">
            <button class='btn btn-primary' type="submit">Save</button> or
            <a href="<?php 
eh(url(VIEW_USER_URL));
?>
">cancel</a>
        </div>
    </form>
</div>
开发者ID:rdaitan,项目名称:dc-board,代码行数:30,代码来源:edit.php

示例11: eh

<div class="row">
    <h3>Delete comment?</h3>
</div>
<div class="row">
    <p>
        Are you sure you want to delete this comment?
    </p>
    <a href="<?php 
eh(url(DELETE_COMMENT_URL, array('id' => $comment->id, 'page_next' => 'delete_end')));
?>
">Yes</a>
    <a href="<?php 
eh(url(VIEW_COMMENT_URL, array('id' => $comment->id)));
?>
">No</a>
</div>
开发者ID:rdaitan,项目名称:dc-board,代码行数:16,代码来源:delete.php

示例12: foreach

        ?>
                    </a></li>
                <?php 
    }
    ?>
            <?php 
}
?>
        </ul>
    </div>
    <div class="four columns">
        <h5 class="top-margin">Following</h5>
        <ul>
            <?php 
foreach ($follows as $follow) {
    ?>
                <li><a href="<?php 
    eh(url(VIEW_THREAD_URL, array('id' => $follow->thread_id)));
    ?>
">
                    <?php 
    eh($follow->thread_title);
    ?>
                </a></li>
            <?php 
}
?>
        </ul>
    </div>
</div>
开发者ID:rdaitan,项目名称:dc-board,代码行数:30,代码来源:view.php

示例13: getSbToolbarShinchakuMatomeHtml

		<td align="left" valign="middle" nowrap>
			<?php 
echo $filter_form_ht;
?>
		</td>
		<td align="left" valign="middle" nowrap>
			<?php 
echo $edit_ht;
?>
		</td>
		<td align="right" valign="middle" nowrap>
			<?php 
echo getSbToolbarShinchakuMatomeHtml($aThreadList, $shinchaku_num);
?>
			<span class="time"><?php 
eh($reloaded_time);
?>
</span>
			<?php 
echo getSbToolAnchorHtml($sb_tool_i);
?>
		</td>
	</tr>
</table>
<?php 
/*
 * Local Variables:
 * mode: php
 * coding: cp932
 * tab-width: 4
 * c-basic-offset: 4
开发者ID:poppen,项目名称:p2,代码行数:31,代码来源:sb_toolbar.inc.php

示例14: eh

<?php 
eh($client_host_st);
?>
: <?php 
eh(P2Util::getRemoteHost());
?>
<br>
<?php 
eh($client_ip_st);
?>
: <?php 
eh($_SERVER['REMOTE_ADDR']);
?>
<br>
<?php 
eh($browser_ua_st);
?>
: <?php 
ehi($_SERVER['HTTP_USER_AGENT']);
?>
<br>
</p>
<?php 
// フッタHTML表示
if (UA::isK()) {
    echo $hr . P2View::getBackToIndexKATag() . "\n";
}
?>
</body></html>
<?php 
exit;
开发者ID:poppen,项目名称:p2,代码行数:31,代码来源:setting.php

示例15: eh

" action="<?php 
eh($action_uri);
?>
" method="post">
スレ:<br>
<input type="text" name="dummy_ttitle" value="<?php 
eh($ttitle);
?>
"><br>
<input type="text" name="dummy_moto_url" value="<?php 
eh($moto_url);
?>
"><br>
<?php 
echo $moto_url_k_ht;
eh($resid);
?>
:<br>

<?php 
if ($_GET['ktool_name'] != 'copy') {
    // $name_txt, $mail_txt, $date_txt は既に実体参照を含んでいる場合がある。タグは除去されている。
    ?>
<input type="text" name="dummy_name" value="<?php 
    echo $name_txt;
    ?>
"><br>
<input type="text" name="dummy_mail" value="<?php 
    echo $mail_txt;
    ?>
"><br>
开发者ID:poppen,项目名称:p2,代码行数:31,代码来源:read_copy_k.php


注:本文中的eh函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。