|
|
|
@ -1314,7 +1314,7 @@ class Blog |
|
|
|
|
echo '<div class="row"><div class="form_header">' . get_lang('NewPost') . '</div></div>'; |
|
|
|
|
|
|
|
|
|
// article title |
|
|
|
|
echo '<div class="row" style="float:left;"> |
|
|
|
|
echo '<div class="row"> |
|
|
|
|
<div class="label" > |
|
|
|
|
<span class="form_required">*</span>'.get_lang('Title') . ' |
|
|
|
|
</div> |
|
|
|
@ -1334,37 +1334,37 @@ class Blog |
|
|
|
|
} |
|
|
|
|
$oFCKeditor->Value = isset($_POST['post_full_text'])?stripslashes($_POST['post_full_text']):''; |
|
|
|
|
|
|
|
|
|
echo '<div class="row" style="float:left;width:100%"> |
|
|
|
|
<div class="label" style="width:7%" > |
|
|
|
|
echo '<div class="row"> |
|
|
|
|
<div class="label"> |
|
|
|
|
' . get_lang('PostFullText') . ' |
|
|
|
|
</div> |
|
|
|
|
<div style="padding-left:110px;width:90%">'; |
|
|
|
|
<div class="formw">'; |
|
|
|
|
$oFCKeditor->Create(); |
|
|
|
|
echo ' </div> |
|
|
|
|
</div>'; |
|
|
|
|
echo '<br /><br />'; |
|
|
|
|
|
|
|
|
|
// attachment |
|
|
|
|
echo '<div style="float:left;width:100%"> |
|
|
|
|
<div style="float:left;padding-right:10px"> |
|
|
|
|
echo '<div class="row"> |
|
|
|
|
<div class="label"> |
|
|
|
|
' . get_lang('AddAnAttachment') . ' |
|
|
|
|
</div> |
|
|
|
|
<div style="float:left;"> |
|
|
|
|
<div class="formw"> |
|
|
|
|
<input type="file" name="user_upload"/> |
|
|
|
|
</div> |
|
|
|
|
</div>'; |
|
|
|
|
echo '<br /><br />'; |
|
|
|
|
|
|
|
|
|
// comment |
|
|
|
|
echo '<div style="float:left;width:100%"> |
|
|
|
|
<div style="float:left;padding-right:28px"> |
|
|
|
|
echo '<div class="row"> |
|
|
|
|
<div class="label"> |
|
|
|
|
' . get_lang('FileComment') . ' |
|
|
|
|
</div> |
|
|
|
|
<div style="float:left;"> |
|
|
|
|
<div class="formw"> |
|
|
|
|
<textarea name="post_file_comment" cols="34" /></textarea> |
|
|
|
|
</div> |
|
|
|
|
</div>'; |
|
|
|
|
echo '<br /><br />'; |
|
|
|
|
|
|
|
|
|
// submit |
|
|
|
|
echo '<div class="row" style="float:left;padding-left:90px;" > |
|
|
|
|
echo '<div class="row"> |
|
|
|
|
<div class="label"> |
|
|
|
|
</div> |
|
|
|
|
<div class="formw"> |
|
|
|
@ -1376,7 +1376,9 @@ class Blog |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '</form>'; |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
api_not_allowed(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -2873,6 +2875,7 @@ class Blog |
|
|
|
|
$list_content_blog=array(); |
|
|
|
|
$list_body_blog=array(); |
|
|
|
|
|
|
|
|
|
if (is_array($list_info)) { |
|
|
|
|
foreach($list_info as $key => $info_log) { |
|
|
|
|
|
|
|
|
|
$list_body_blog[]=$info_log[0]; |
|
|
|
@ -2899,14 +2902,14 @@ class Blog |
|
|
|
|
} |
|
|
|
|
$parameters=''; |
|
|
|
|
//$parameters=array('action'=>Security::remove_XSS($_GET['action'])); |
|
|
|
|
|
|
|
|
|
$table = new SortableTableFromArrayConfig($list_content_blog, 1,20,'project'); |
|
|
|
|
$table->set_additional_parameters($parameters); |
|
|
|
|
//$table->set_additional_parameters($parameters); |
|
|
|
|
$table->set_header(0, get_lang('Title')); |
|
|
|
|
$table->set_header(1, get_lang('Subtitle')); |
|
|
|
|
$table->set_header(2, get_lang('Modify')); |
|
|
|
|
$table->display(); |
|
|
|
|
$list_content_blog=array(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*$sql = "SELECT `blog_id`, `blog_name`, `blog_subtitle`, `visibility` FROM $tbl_blogs ORDER BY `blog_name`"; |
|
|
|
|
$result = api_sql_query($sql, __FILE__, __LINE__); |
|
|
|
|
|
|
|
|
|