alert('로그인을 하셔야 합니다.');";
echo ("");
exit;
}
include "./lib.php";
include('PageHandle.php');
$objPH = new PageHandle();
$strSql = "select article_modify_YN
from ksoe_article_type
where open_article = 'Y'";
$strResult = sql_query($strSql);
if($strResult)
{
if(!$article_open = sql_num_rows($strResult))
{
echo "";
meta_move('/theme/ksoe/html/ksoe_conference_apply.php');
exit;
}
else
{
$data = sql_fetch_array($strResult);
if($data[article_modify_YN] == "N")
{
echo "";
meta_move('/theme/ksoe/html/ksoe_conference_apply.php');
exit;
}
}
}
include_once('./_head.php');
add_stylesheet('');
if(!empty($_POST['link_condition']))
{
$arg = ResetArgumentsExtention($_POST['link_condition']);
$start = $arg['start'];
$stPage = $arg['stPage'];
$subject_search = $arg['subject_search'];
$author_search = $arg['author_search'];
$nowPage = $arg['nowPage'];
$setting_article_code = $arg['setting_article_code'];
}
if(empty($setting_article_code)){
$strSql = "select article_code,
article_type
from ksoe_article_type
where open_article = 'Y'";
$strResult = sql_query($strSql);
if($strResult)
{
if(sql_num_rows($strResult))
{
$article_type = "";
$ksoe_type_data = sql_fetch_array($strResult);
$setting_article_code = $ksoe_type_data['article_code'];
}
}
}
///////////////////////////////////////////////
if(!$start) $start = 0;
if(!$stPage) $stPage = 1;
if(!$total_page) $total_page =1;
if(!$nowPage){$nowPage = 1;}
if($page_size == "") $page_size = "10";
$now_year = date("Y");
$modify_url = "ksoe_paper_newmodify.html";
///////////////////////////////////////////////
$sqlWhere = "where id ='".$member[mb_id]."' and del_YN='N'";
$setting_article_code_sql = "and article_type = '$setting_article_code' ";
$strSql = "select count(*) cnt from ksoe_article $sqlWhere $setting_article_code_sql";
if(!$cursor = sql_query($strSql))
{
echo "query error";
exit;
}
$rows = sql_fetch_array($cursor); //총 글수
$total = $rows['cnt'];
$strSql = "select author,
subject,
announcer,
uid,
article_file,
DATE_FORMAT(input_date,'%Y-%m-%d') as input_date
from ksoe_article
$sqlWhere
$setting_article_code_sql
order by uid desc
limit $start,$page_size";
$cursor = sql_query($strSql);
if($cursor){
$indexNo = $total - $start;
$endNo = $indexNo;
if(@sql_num_rows($cursor) > 0){
while($data=@sql_fetch_array($cursor)){
////////////////////////////
$nbsp="";
$new_img = "";
////////////////////////////
$conditionx = "";
$conditionx.= "&uid=";
$conditionx.= $data['uid'];
$conditionx.= "&index=";
$conditionx.= $whileCount + $start;
$conditionx.= "&stPage=".$stPage;
$conditionx.= "&setting_article_code=".$setting_article_code;
$data[subject]=stripslashes($data[subject]);
$data[author]=stripslashes($data[author]);
$filelink = "";
if($data['article_file']){
$filelink = "
";
}else{
$filelink = "";
}
$prpBody .= <<< END
The Korean Society of Ocean Engineers