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

Advertisement Uploader Enhancement [Table and Dropdown Revision]

parent 6a967dda
...@@ -49,13 +49,8 @@ include_once('template/base_head.php'); ...@@ -49,13 +49,8 @@ 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">
<tr>
<th>Thumbnail</th> <th>Thumbnail</th>
<th>Ad ID</th> <th>Ad ID</th>
<th>File Name</th> <th>File Name</th>
...@@ -63,9 +58,8 @@ include_once('template/base_head.php'); ...@@ -63,9 +58,8 @@ include_once('template/base_head.php');
<th>Created Date</th> <th>Created Date</th>
<th>Info</th> <th>Info</th>
<th>Delete</th> <th>Delete</th>
</tr>
<tbody id="sortable" class=""> <tbody id="sortable" class="">
<?php <?php
$this -> echoImageList(); $this -> echoImageList();
?> ?>
...@@ -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,10 +485,16 @@ HTMLTABLE; ...@@ -485,10 +485,16 @@ 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()){
case TYPE_DELETE:
case TYPE_IMAGE_MANAGER_UPLOAD_COMPLETE:
case TYPE_IMAGE_MANAGER_DETAIL:
case TYPE_UPDATE:
$loc = $this -> location; $loc = $this -> location;
}else{ break;
default:
$loc = $this -> slocation; $loc = $this -> slocation;
break;
} }
foreach ($location as $value) { foreach ($location as $value) {
...@@ -507,10 +513,16 @@ HTMLTABLE; ...@@ -507,10 +513,16 @@ 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()){
case TYPE_DELETE:
case TYPE_IMAGE_MANAGER_UPLOAD_COMPLETE:
case TYPE_IMAGE_MANAGER_DETAIL:
case TYPE_UPDATE:
$lang = $this -> language; $lang = $this -> language;
}else{ break;
default:
$lang = $this -> slanguage; $lang = $this -> slanguage;
break;
} }
foreach ($language as $value) { foreach ($language as $value) {
......
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