Commit 98fd0e78 authored by Anthony.Suerte's avatar Anthony.Suerte

Advertisement Uploader Enhancement [Table and Dropdown Revision]

parent 6a967dda
......@@ -49,26 +49,20 @@ include_once('template/base_head.php');
</div>
<?php $this -> echoMessage(); ?>
<form id="acForm" action="" method="post">
<!-- <ul id="sortable" class="list-group container">
<?php
// /$this -> echoImageList();
?>
</ul> -->
<table class="table col bdr default odd w100p fontXS calign">
<th>Thumbnail</th>
<th>Ad ID</th>
<th>File Name</th>
<th>Created By</th>
<th>Created Date</th>
<th>Info</th>
<th>Delete</th>
<tr>
<th>Thumbnail</th>
<th>Ad ID</th>
<th>File Name</th>
<th>Created By</th>
<th>Created Date</th>
<th>Info</th>
<th>Delete</th>
</tr>
<tbody id="sortable" class="">
<?php
$this -> echoImageList();
?>
<?php
$this -> echoImageList();
?>
</tbody>
</table>
<input type="hidden" value="account_edit" id="action" name="action" />
......@@ -76,7 +70,6 @@ include_once('template/base_head.php');
<input type="hidden" id="adID" name="adID" value="" />
<input type="hidden" id="language" name="language" value="" />
<input type="hidden" id="location" name="location" value="" />
<!-- <input type="hidden" id="sequence" name="sequence" value="" /> -->
</form>
</article>
</div>
......
......@@ -186,7 +186,7 @@ class AdvertisementModelClass extends ModelClassEx {
}
} else {
$rtn = '<tr><td colspan="6">' . $this -> getMessage(INFO, 'I_NO_SUCHE_SEARCH_DATA', array()) . '</td></tr>';
$rtn = '<tr><td colspan="8">' . $this -> getMessage(INFO, 'I_NO_SUCHE_SEARCH_DATA', array()) . '</td></tr>';
}
echo $rtn;
}
......@@ -485,12 +485,18 @@ HTMLTABLE;
$options = array();
$rtn = NO_STRING;
if($this -> getType() == TYPE_DELETE || $this -> getType() == TYPE_IMAGE_MANAGER_UPLOAD_COMPLETE || $this -> getType() == TYPE_IMAGE_MANAGER_DETAIL){
$loc = $this -> location;
}else{
$loc = $this -> slocation;
switch($this -> getType()){
case TYPE_DELETE:
case TYPE_IMAGE_MANAGER_UPLOAD_COMPLETE:
case TYPE_IMAGE_MANAGER_DETAIL:
case TYPE_UPDATE:
$loc = $this -> location;
break;
default:
$loc = $this -> slocation;
break;
}
foreach ($location as $value) {
if($loc == $value){
$options[] = '<option value="'.$loc.'" selected="selected">'.$loc.'</option>';
......@@ -507,12 +513,18 @@ HTMLTABLE;
$options = array();
$rtn = NO_STRING;
if($this -> getType() == TYPE_DELETE || $this -> getType() == TYPE_IMAGE_MANAGER_UPLOAD_COMPLETE || $this -> getType() == TYPE_IMAGE_MANAGER_DETAIL){
$lang = $this -> language;
}else{
$lang = $this -> slanguage;
switch($this -> getType()){
case TYPE_DELETE:
case TYPE_IMAGE_MANAGER_UPLOAD_COMPLETE:
case TYPE_IMAGE_MANAGER_DETAIL:
case TYPE_UPDATE:
$lang = $this -> language;
break;
default:
$lang = $this -> slanguage;
break;
}
foreach ($language as $value) {
if($lang == $value){
$options[] = '<option value="'.$lang.'" selected="selected">'.$lang.'</option>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment