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'); ...@@ -49,26 +49,20 @@ include_once('template/base_head.php');
</div> </div>
<?php $this -> echoMessage(); ?> <?php $this -> echoMessage(); ?>
<form id="acForm" action="" method="post"> <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"> <table class="table col bdr default odd w100p fontXS calign">
<th>Thumbnail</th> <tr>
<th>Ad ID</th> <th>Thumbnail</th>
<th>File Name</th> <th>Ad ID</th>
<th>Created By</th> <th>File Name</th>
<th>Created Date</th> <th>Created By</th>
<th>Info</th> <th>Created Date</th>
<th>Delete</th> <th>Info</th>
<th>Delete</th>
</tr>
<tbody id="sortable" class=""> <tbody id="sortable" class="">
<?php
$this -> echoImageList();
<?php ?>
$this -> echoImageList();
?>
</tbody> </tbody>
</table> </table>
<input type="hidden" value="account_edit" id="action" name="action" /> <input type="hidden" value="account_edit" id="action" name="action" />
...@@ -76,7 +70,6 @@ include_once('template/base_head.php'); ...@@ -76,7 +70,6 @@ include_once('template/base_head.php');
<input type="hidden" id="adID" name="adID" value="" /> <input type="hidden" id="adID" name="adID" value="" />
<input type="hidden" id="language" name="language" value="" /> <input type="hidden" id="language" name="language" value="" />
<input type="hidden" id="location" name="location" value="" /> <input type="hidden" id="location" name="location" value="" />
<!-- <input type="hidden" id="sequence" name="sequence" value="" /> -->
</form> </form>
</article> </article>
</div> </div>
......
...@@ -186,7 +186,7 @@ class AdvertisementModelClass extends ModelClassEx { ...@@ -186,7 +186,7 @@ class AdvertisementModelClass extends ModelClassEx {
} }
} else { } 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; echo $rtn;
} }
...@@ -485,12 +485,18 @@ HTMLTABLE; ...@@ -485,12 +485,18 @@ HTMLTABLE;
$options = array(); $options = array();
$rtn = NO_STRING; $rtn = NO_STRING;
if($this -> getType() == TYPE_DELETE || $this -> getType() == TYPE_IMAGE_MANAGER_UPLOAD_COMPLETE || $this -> getType() == TYPE_IMAGE_MANAGER_DETAIL){ switch($this -> getType()){
$loc = $this -> location; case TYPE_DELETE:
}else{ case TYPE_IMAGE_MANAGER_UPLOAD_COMPLETE:
$loc = $this -> slocation; case TYPE_IMAGE_MANAGER_DETAIL:
case TYPE_UPDATE:
$loc = $this -> location;
break;
default:
$loc = $this -> slocation;
break;
} }
foreach ($location as $value) { foreach ($location as $value) {
if($loc == $value){ if($loc == $value){
$options[] = '<option value="'.$loc.'" selected="selected">'.$loc.'</option>'; $options[] = '<option value="'.$loc.'" selected="selected">'.$loc.'</option>';
...@@ -507,12 +513,18 @@ HTMLTABLE; ...@@ -507,12 +513,18 @@ HTMLTABLE;
$options = array(); $options = array();
$rtn = NO_STRING; $rtn = NO_STRING;
if($this -> getType() == TYPE_DELETE || $this -> getType() == TYPE_IMAGE_MANAGER_UPLOAD_COMPLETE || $this -> getType() == TYPE_IMAGE_MANAGER_DETAIL){ switch($this -> getType()){
$lang = $this -> language; case TYPE_DELETE:
}else{ case TYPE_IMAGE_MANAGER_UPLOAD_COMPLETE:
$lang = $this -> slanguage; case TYPE_IMAGE_MANAGER_DETAIL:
case TYPE_UPDATE:
$lang = $this -> language;
break;
default:
$lang = $this -> slanguage;
break;
} }
foreach ($language as $value) { foreach ($language as $value) {
if($lang == $value){ if($lang == $value){
$options[] = '<option value="'.$lang.'" selected="selected">'.$lang.'</option>'; $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