Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
iwl-live
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anthony.Suerte
iwl-live
Commits
98fd0e78
Commit
98fd0e78
authored
Jul 09, 2021
by
Anthony.Suerte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Advertisement Uploader Enhancement [Table and Dropdown Revision]
parent
6a967dda
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
30 deletions
+35
-30
tmp_advertisements_manager.php
system/en/template/tmp_advertisements_manager.php
+12
-19
model.php
system/logic/advertisements/model.php
+23
-11
No files found.
system/en/template/tmp_advertisements_manager.php
View file @
98fd0e78
...
@@ -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>
...
...
system/logic/advertisements/model.php
View file @
98fd0e78
...
@@ -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
>
';
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment