<load target="js/mboard.js" />
<load target="css/mboard.css" />
<div class="hx h2">
<h2><a href="{getUrl('document_srl','','category','','page','')}">{$module_info->browser_title}</a>
<!--@if($module_info->use_category == "Y" && $oDocument->get('category_srl'))-->› <a href="{getUrl('document_srl','','category',$oDocument->get('category_srl'))}">{$category_list[$oDocument->get('category_srl')]->title}</a><!--@end--> › {$oDocument->getTitle()}</h2>
<span class="ex">{$oDocument->getNickName()} | {$oDocument->getRegdate()} | <a href="#skip_co">{$lang->skip_to_content}</a></span>
<a href="{getUrl('act','dispBoardWrite','document_srl','')}" class="write">{$lang->cmd_write}</a>
</div>
<div class="co">
<!--@if(!$oDocument->isAccessible())-->
<form action="/" method="get" class="ff" onsubmit="return procFilter(this, input_password)">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />
<label for="cpw">{$lang->msg_is_secret}</label>
<input type="password" name="password" id="cpw" />
<input type="submit" value="{$lang->cmd_input}" class="bn dark" />
</form>
<!--@else-->
<!--@if($oDocument->isExtraVarsExists())-->
{@ $_extra_vars = $oDocument->getExtraVars(); }
<dl class="xv">
<!--@foreach($_extra_vars as $key => $val)-->
<dt>{$val->name}</dt>
<dd>{$val->getValueHTML()}</dd>
<!--@end-->
</dl>
<!--@end-->
{$oDocument->getContent(false)}
<!--@end-->
</div>
<div id="skip_co"></div>
<!--@if($oDocument->hasUploadedFiles())-->
{@ $uploaded_list = $oDocument->getUploadedFiles() }
<div class="hx h3">
<h3>{$lang->uploaded_file} <em>[{count($uploaded_list)}]</em></h3>
<button type="button" class="tg" title="open/close"></button>
</div>
<ul class="file tgo open">
<!--@foreach($uploaded_list as $key => $file)-->
<li><a href="{getUrl('')}{$file->download_url}">{$file->source_filename} <span class="size">{FileHandler::filesize($file->file_size)}</span></a></li>
<!--@end-->
</ul>
<!--@endif-->
<!--@if($oDocument->allowTrackback() && $oDocument->getTrackbackCount())-->
<div class="hx h3">
<h3>{$lang->trackback} <em>[{$oDocument->getTrackbackCount()}]</em></h3>
<button type="button" class="tg" title="open/close"></button>
</div>
<ul class="rp tgo open">
{@ $_trackback_list = $oDocument->getTrackbacks() }
<!--@foreach($_trackback_list as $key => $val)-->
<li>
<p>{$val->excerpt}</p>
<span class="auth">
<em>{htmlspecialchars($val->title)} - {htmlspecialchars($val->blog_name)}</em>
<span class="time">{zdate($val->regdate, "Y.m.d")}</span>
<!--@if($grant->manager)-->
<a href="07_password.html" class="btn de">{$lang->cmd_delete}</a>
<!--@endif-->
</span>
</li>
<!--@end-->
</ul>
<!--@endif-->
<!--@if($oDocument->getCommentCount())-->
<div class="hx h3">
<h3 id="clb">{$lang->comment} <em>[{$oDocument->getCommentCount()}]</em></h3>
<button type="button" class="tg tgr" title="open/close"></button>
</div>
<!--@endif-->
<!--@if($grant->write_comment && $oDocument->isEnableComment() )-->
<div class="hx h3">
<h3>{$lang->write_comment}</h3>
<button type="button" class="tg" title="open/close"></button>
</div>
<form action="/" method="post" class="ff tgo open" onsubmit="return procFilter(this, insert_comment);">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />
<input type="hidden" name="comment_srl" value="" />
<ul>
<li>
<label for="rText">{$lang->comment}</label>
<input type="hidden" name="content" value="" />
{$oDocument->getCommentEditor()}
</li>
<!--@if(!$is_logged)-->
<li>
<label for="uName">{$lang->writer}</label>
<input name="nick_name" type="text" id="uName" />
</li>
<li>
<label for="uMail">{$lang->email_address}</label>
<input name="email_address" type="email" id="uMail" />
</li>
<li>
<label for="uPw">{$lang->password}</label>
<input name="password" type="password" id="uPw" />
</li>
<li>
<label for="uSite">{$lang->homepage}</label>
<input name="homepage" type="url" id="uSite" value="http://" />
</li>
<!--@endif-->
</ul>
<div class="bna">
<button class="bn dark" onclick="getNickName()">닉네임얻기</button>
<input name="" type="submit" value="{$lang->cmd_comment_registration}" class="bn dark" />4321
</div>
</form>
<!--@end-->
<div style="height:1px;overflow:hidden;background:#ddd"></div>
<div class="bna">
<span class="fl"><a href="{getUrl('document_srl','')}" class="bn white">{$lang->cmd_list}</a></span>
<span class="fr">
<!--@if($oDocument->isEditable())-->
<a href="{getUrl('act','dispBoardDelete','document_srl',$oDocument->document_srl,'comment_srl','')}" class="bn white">{$lang->cmd_delete}</a>
<!--@end-->
</span>
</div>
<script>
function getNickName() {
var uName = document.getElementById('uName').value;
alert(uName);
console.log(uName);
}
//<![CDATA[
jQuery(function($){
$('.co .mm').next().hide();
$('.mm').click(function(){ $(this).hide().next().show();});
$('.tgo').removeClass('open');
$('.tg').click(function(){
$(this).parent('.h3').next('.tgo').toggleClass('open');
});
var loaded = false;
$('.tgr').click(function(){
if(!loaded) {
loaded = true;
{@ $lastpage = 1; }
{@ $temp = $oDocument->getComments() }
<!--@if($oDocument->comment_page_navigation)-->
{@ $lastpage = $oDocument->comment_page_navigation->last_page }
<!--@endif-->
loadPage({$oDocument->document_srl}, {$lastpage});
}
});
});
//]]>
</script>
getNickName()이라는 함수를 만들었습니다.
저의 목적은 nickname값을 얻기위함입니다.
그리고 nickname값을 변수에 담기위함입니다.
rhymix.min.js?t=1706001787:240 Uncaught TypeError: Cannot read properties of null (reading '_rx_debug')
at Object.successHandler [as success] (rhymix.min.js?t=1706001787:240:58)
at i (jquery-2.2.4.min.js?t=1706001458:2:27151)
at Object.fireWith [as resolveWith] (jquery-2.2.4.min.js?t=1706001458:2:27914)
at z (jquery-2.2.4.min.js?t=1706001458:4:12059)
at XMLHttpRequest.<anonymous> (jquery-2.2.4.min.js?t=1706001458:4:15619)
에러 뜨네요