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
bce3af96
Commit
bce3af96
authored
Jul 06, 2021
by
Anthony.Suerte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Advertisement Uploader Enhancement
parent
4991c92a
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
57 additions
and
64 deletions
+57
-64
tmp_advertisements_manager.php
system/en/template/tmp_advertisements_manager.php
+1
-0
tmp_advertisements_manager_detail.php
system/en/template/tmp_advertisements_manager_detail.php
+1
-9
advertisements.js
system/js/advertisements.js
+1
-1
common.js
system/js/common.js
+1
-1
control_keys.php
system/lib/core/control_keys.php
+0
-22
core.php
system/lib/core/core.php
+1
-0
site_keys.php
system/lib/core/site_keys.php
+24
-0
logic.php
system/logic/advertisements/logic.php
+1
-1
model.php
system/logic/advertisements/model.php
+27
-30
No files found.
system/en/template/tmp_advertisements_manager.php
View file @
bce3af96
...
...
@@ -58,6 +58,7 @@ include_once('template/base_head.php');
<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>
...
...
system/en/template/tmp_advertisements_manager_detail.php
View file @
bce3af96
...
...
@@ -29,7 +29,7 @@ include_once('template/base_head.php');
<
div
class
=
"container-fluid"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12 col-md-12 col-lg-6"
>
<
img
src
=
"
https://test.iwl.world
/documents/ads/<?php
$this
-> echoFileName(); ?>"
style
=
"margin-left: auto;margin-right: auto; display: block;"
alt
=
"Cinque Terre"
width
=
"800"
class
=
"img-fluid"
>
<
img
src
=
"
<?=SITE_PROTOCOL?>://<?=SITE_DOMAIN_FULL?>
/documents/ads/<?php
$this
-> echoFileName(); ?>"
style
=
"margin-left: auto;margin-right: auto; display: block;"
alt
=
"Cinque Terre"
width
=
"800"
class
=
"img-fluid"
>
<
label
for
=
"img1"
>
Change
Image
:</
label
>
<
input
type
=
"file"
accept
=
"image/jpeg,image/png,image/jpg,image/gif,application/pdf"
id
=
"img1"
name
=
"img1"
value
=
""
class
=
"w100p"
>
</
div
>
...
...
@@ -95,13 +95,5 @@ include_once('template/base_head.php');
$
(
"
#sortable
"
).
disableSelection
();
}
);
</script>
<script>
$
(
function
()
{
$
(
"
#save
"
).
click
({
<?php
echo
"alert('mikko');"
;
?>
});
});
</script>
</body>
</html>
system/js/advertisements.js
View file @
bce3af96
...
...
@@ -124,7 +124,7 @@ function actionSearch() {
function
deleteAd
(
id
)
{
var
x
=
confirm
(
"
Are you sure you to delete this ad?
"
);
var
x
=
confirm
(
"
Are you sure you to delete this ad?
"
+
'
[
'
+
id
+
'
]
'
);
if
(
x
==
true
){
$
(
'
#type
'
).
val
(
'
delete
'
);
$
(
'
#adID
'
).
val
(
id
);
...
...
system/js/common.js
View file @
bce3af96
...
...
@@ -130,7 +130,7 @@ $(function() {
})
//
$
(
'
#header_datetime
'
).
date
time
picker
({
$
(
'
#header_datetime
'
).
datepicker
({
format
:
'
Y-m-d H
'
// , inline : true
...
...
system/lib/core/control_keys.php
View file @
bce3af96
...
...
@@ -115,28 +115,6 @@ define('CARD_MESSAGE_ID', '13'); // シーケンスキー情報(カードA
define
(
'API_SIGNATURE'
,
'14'
);
// シーケンスキー情報(APIシグネチャ)
define
(
'SQ_EXCHANGE_FEE'
,
'15'
);
// シーケンスキー情報(為替手数料)
//-----------------------------------------------------------------------//
// 共通情報
//-----------------------------------------------------------------------//
define
(
'SITE_NAME'
,
'iWallet'
);
define
(
'SITE_SHORT_NAME'
,
'iWallet'
);
define
(
'SITE_CORP_SHORT_NAME'
,
'iWallet'
);
define
(
'CORPORATE_NAME'
,
'iWallet'
);
define
(
'CORPORATE_ADDRESS'
,
'iWallet'
);
define
(
'CORPORATE_REG_NO'
,
'iWallet'
);
define
(
'CORPORATE_COUNTRY'
,
'【※企業様国名 ‘Merchant’ Country※】'
);
define
(
'SITE_DOMAIN'
,
'iwl.world'
);
define
(
'SITE_DOMAIN_0'
,
'iwl.world'
);
define
(
'SITE_DOMAIN_1'
,
'd-wallet.biz'
);
define
(
'SITE_SUB_DOMAIN'
,
'secure'
);
define
(
'VAR_EC_MAIL_ADDRESS'
,
'infos@'
.
SITE_DOMAIN
);
define
(
'VAR_CS_MAIL_ADDRESS'
,
'cs@'
.
SITE_DOMAIN
);
define
(
'VAR_BS_MAIL_ADDRESS'
,
'bs@'
.
SITE_DOMAIN
);
define
(
'VAR_NOTICE_MAIL_ADDRESS'
,
'notice@'
.
SITE_DOMAIN
);
define
(
'VAR_MARCHANT_MAIL_ADDRESS'
,
'marchant@'
.
SITE_DOMAIN
);
define
(
'VAR_CARD_MAIL_ADDRESS'
,
'card@'
.
SITE_DOMAIN
);
define
(
'VAR_MARCHANT_ACCOUNT_NUMBER'
,
'100000'
);
//-----------------------------------------------------------------------//
// カード関連
//-----------------------------------------------------------------------//
...
...
system/lib/core/core.php
View file @
bce3af96
...
...
@@ -4,6 +4,7 @@
//-----------------------------------------------------------------------//
$root
=
explode
(
'/'
,
$_SERVER
[
'REQUEST_URI'
]);
require_once
(
LIBRARIES_CORE
.
'site_keys.php'
);
// SITE Literals
require_once
(
LIBRARIES_CORE
.
'primary_lits.php'
);
// Mango Primary Literals
require_once
(
LIBRARIES_CORE
.
'column_keys.php'
);
// DBカラム名群
require_once
(
LIBRARIES_CORE
.
'control_keys.php'
);
// コントロールキー群
...
...
system/lib/core/site_keys.php
0 → 100644
View file @
bce3af96
<?php
//-----------------------------------------------------------------------//
// 共通情報
//-----------------------------------------------------------------------//
define
(
'SITE_NAME'
,
'iWallet'
);
define
(
'SITE_SHORT_NAME'
,
'iWallet'
);
define
(
'SITE_CORP_SHORT_NAME'
,
'iWallet'
);
define
(
'CORPORATE_NAME'
,
'iWallet'
);
define
(
'CORPORATE_ADDRESS'
,
'iWallet'
);
define
(
'CORPORATE_REG_NO'
,
'iWallet'
);
define
(
'CORPORATE_COUNTRY'
,
'【※企業様国名 ‘Merchant’ Country※】'
);
define
(
'SITE_PROTOCOL'
,
'https'
);
define
(
'SITE_DOMAIN_FULL'
,
'secure.iwl.world'
);
define
(
'SITE_DOMAIN'
,
'iwl.world'
);
define
(
'SITE_DOMAIN_0'
,
'iwl.world'
);
define
(
'SITE_DOMAIN_1'
,
'd-wallet.biz'
);
define
(
'SITE_SUB_DOMAIN'
,
'secure'
);
define
(
'VAR_EC_MAIL_ADDRESS'
,
'infos@'
.
SITE_DOMAIN
);
define
(
'VAR_CS_MAIL_ADDRESS'
,
'cs@'
.
SITE_DOMAIN
);
define
(
'VAR_BS_MAIL_ADDRESS'
,
'bs@'
.
SITE_DOMAIN
);
define
(
'VAR_NOTICE_MAIL_ADDRESS'
,
'notice@'
.
SITE_DOMAIN
);
define
(
'VAR_MARCHANT_MAIL_ADDRESS'
,
'marchant@'
.
SITE_DOMAIN
);
define
(
'VAR_CARD_MAIL_ADDRESS'
,
'card@'
.
SITE_DOMAIN
);
define
(
'VAR_MARCHANT_ACCOUNT_NUMBER'
,
'100000'
);
\ No newline at end of file
system/logic/advertisements/logic.php
View file @
bce3af96
...
...
@@ -71,7 +71,7 @@ class LogicAdvertisements extends AdvertisementModelClass {
$this
->
accessModify
(
'INSERT_ADS'
,
$this
->
getImageAdRegistData
());
$this
->
popUpSessionMessage
(
INFO
,
'I_COMPLATE_SAVE'
,
array
());
}
else
{
$this
->
popUpSessionMessage
(
ERROR
,
'E_ERROR_UPLOAD_ADMIN_
INVALI
D'
,
array
());
$this
->
popUpSessionMessage
(
ERROR
,
'E_ERROR_UPLOAD_ADMIN_
FAILE
D'
,
array
());
}
}
...
...
system/logic/advertisements/model.php
View file @
bce3af96
...
...
@@ -361,7 +361,10 @@ class AdvertisementModelClass extends ModelClassEx {
else
chmod
(
$path
,
0777
);
$this
->
saveName
=
basename
(
$_FILES
[
PARAM_IMG1
][
PARAM_NAME
]);
$extName
=
basename
(
$_FILES
[
PARAM_IMG1
][
PARAM_NAME
]);
$extName
=
substr
(
$extName
,
strpos
(
$extName
,
"."
));
$this
->
saveName
=
"ad_
{
$this
->
language
}
_
{
$this
->
createUId
()
}
.
{
$extName
}
"
;
// 画像の移動
if
(
move_uploaded_file
(
$_FILES
[
PARAM_IMG1
][
PARAM_TMP_NAME
],
$path
.
DELIMIT_SLASH
.
$this
->
saveName
))
{
...
...
@@ -421,36 +424,30 @@ class AdvertisementModelClass extends ModelClassEx {
if
(
$this
->
isLoopData
(
$this
->
rs2
))
{
for
(
$cnt
=
0
;
$cnt
<
count
(
$this
->
rs2
);
$cnt
++
)
{
$row
=
$this
->
getRowData
(
$this
->
rs2
,
$cnt
);
// $rtn .=
// '<li class="list-group-item h5" id='.$this -> getColumnData($row, 'id').'>'.
// '<img src="http://iwl.localhost/documents/ads/'.$this -> getColumnData($row, 'file_name').'" class="img-thumbnail" alt="Cinque Terre" width="70">'.
// '<p class="ml-3 mt-3">'.$this -> getColumnData($row, 'ads_id').'</p>'.
// '<span id="'.$this -> getColumnData($row, 'id').'" class="fa fa-info-circle fa-lg mr-5" style="color: #0275d8; position: absolute; right: 0;"></span>'.
// '<span onclick="deleteAd(\''.$this -> getColumnData($row, 'id').'\')" class="fa fa-trash fa-lg mr-2" style="color: #0275d8; position: absolute; right: 0;"></span>'.
// '</li>';
$rtn
.=
'<tr id='
.
$this
->
getColumnData
(
$row
,
'id'
)
.
' >'
.
'<td>'
.
'<img src="https://'
.
SITE_DOMAIN
.
'/documents/ads/'
.
$this
->
getColumnData
(
$row
,
'file_name'
)
.
'" class="img-thumbnail" alt="Cinque Terre" width="70">'
.
'</td>'
.
'<td>'
.
'<p class="ml-3 mt-3">'
.
$this
->
getColumnData
(
$row
,
'ads_id'
)
.
'</p>'
.
'</td>'
.
'<td>'
.
'<p class="ml-3 mt-3">'
.
$this
->
getAdminNameByUid
(
$this
->
getColumnData
(
$row
,
'created_by'
))
.
'</p>'
.
'</td>'
.
'<td>'
.
'<p class="ml-3 mt-3">'
.
$this
->
getColumnData
(
$row
,
'create_time'
)
.
'</p>'
.
'</td>'
.
'<td class="blocka">'
.
'<a href="#"><span id="'
.
$this
->
getColumnData
(
$row
,
'id'
)
.
'" class="fa fa-info-circle fa-lg ml-3 mt-3" style="color: #0275d8;"></span></a>'
.
'</td>'
.
'<td class="blocka">'
.
'<a href="#"><span onclick="deleteAd(\''
.
$this
->
getColumnData
(
$row
,
'id'
)
.
'\')" class="fa fa-trash fa-lg ml-3 mt-3" style="color: #0275d8;"></span></a>'
.
'</td>'
.
'</tr>'
;
$siteDomain
=
SITE_DOMAIN_FULL
;
$siteProtocol
=
SITE_PROTOCOL
;
$rtn
.=<<<
HTMLTABLE
<
tr
id
=
"
{
$this
->
getColumnData
(
$row
,
'id'
)
}
"
>
<
td
><
img
src
=
"
{
$siteProtocol
}
://
{
$siteDomain
}
/documents/ads/
{
$this
->
getColumnData
(
$row
,
'file_name'
)
}
"
class
=
"img-thumbnail"
alt
=
"Cinque Terre"
width
=
"70"
>
'</td>
<td><p class="ml-3 mt-3">{$this -> getColumnData($row, '
ads_id
')}</p></td>
<td><p class="ml-3 mt-3">{$this -> getColumnData($row, '
file_name
')}</p></td>
<td><p class="ml-3 mt-3">{$this -> getAdminNameByUid($this -> getColumnData($row, '
created_by
'))}</p></td>
<td><p class="ml-3 mt-3">{$this -> getColumnData($row, '
create_time
')}</p></td>
<td class="blocka">
<a href="#">
<span id="{$this -> getColumnData($row, '
id
')}" class="fa fa-info-circle fa-lg ml-3 mt-3" style="color: #0275d8;"></span>
</a>
</td>
<td class="blocka">
<a href="javascript:deleteAd('
{
$this
->
getColumnData
(
$row
,
'id'
)}
')">
<span class="fa fa-trash fa-lg ml-3 mt-3" style="color: #0275d8;"></span>
</a>
</td>
</tr>
HTMLTABLE;
}
} else {
$rtn = '
<
tr
><
td
colspan
=
"6"
>
' . $this -> getMessage(INFO, '
I_NO_SUCHE_SEARCH_DATA
', array()) . '
</
td
></
tr
>
';
...
...
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