mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Implement SMS logging and viewing
This commit is contained in:
parent
137728d527
commit
85c9b633ec
17 changed files with 307 additions and 31 deletions
|
|
@ -1,4 +1,4 @@
|
|||
<query id="deleteLogs" action="delete">
|
||||
<query id="deleteMailLogs" action="delete">
|
||||
<tables>
|
||||
<table name="advanced_mailer_log" />
|
||||
</tables>
|
||||
9
modules/advanced_mailer/queries/deleteSMSLogs.xml
Normal file
9
modules/advanced_mailer/queries/deleteSMSLogs.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<query id="deleteSMSLogs" action="delete">
|
||||
<tables>
|
||||
<table name="advanced_mailer_sms_log" />
|
||||
</tables>
|
||||
<conditions>
|
||||
<condition operation="equal" column="status" var="status" />
|
||||
<condition operation="less" column="regdate" var="regdate" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<query id="getLogByType" action="select">
|
||||
<query id="getMailLogByType" action="select">
|
||||
<tables>
|
||||
<table name="advanced_mailer_log" />
|
||||
</tables>
|
||||
17
modules/advanced_mailer/queries/getSMSLogByType.xml
Normal file
17
modules/advanced_mailer/queries/getSMSLogByType.xml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<query id="getSMSLogByType" action="select">
|
||||
<tables>
|
||||
<table name="advanced_mailer_sms_log" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="*" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="status" var="status" />
|
||||
</conditions>
|
||||
<navigation>
|
||||
<index var="sort_index" default="sms_id" order="desc" />
|
||||
<list_count var="list_count" default="20" />
|
||||
<page_count var="page_count" default="10" />
|
||||
<page var="page" default="1" />
|
||||
</navigation>
|
||||
</query>
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<query id="insertLog" action="insert">
|
||||
<query id="insertMailLog" action="insert">
|
||||
<tables>
|
||||
<table name="advanced_mailer_log" />
|
||||
</tables>
|
||||
15
modules/advanced_mailer/queries/insertSMSLog.xml
Normal file
15
modules/advanced_mailer/queries/insertSMSLog.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<query id="insertSMSLog" action="insert">
|
||||
<tables>
|
||||
<table name="advanced_mailer_sms_log" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="sms_from" var="sms_from" notnull="notnull" />
|
||||
<column name="sms_to" var="sms_to" notnull="notnull" />
|
||||
<column name="content" var="content" notnull="notnull" />
|
||||
<column name="calling_script" var="calling_script" notnull="notnull" />
|
||||
<column name="sending_method" var="sending_method" notnull="notnull" />
|
||||
<column name="regdate" var="regdate" notnull="notnull" default="curdate()" />
|
||||
<column name="status" var="status" notnull="notnull" default="success" />
|
||||
<column name="errors" var="errors" />
|
||||
</columns>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue