Skip to content

Commit

Permalink
Update action_admin.html
Browse files Browse the repository at this point in the history
Добавлена подписка на события и отправка файлов
  • Loading branch information
directman66 committed Sep 26, 2019
1 parent d090c53 commit 234f171
Showing 1 changed file with 57 additions and 14 deletions.
71 changes: 57 additions & 14 deletions templates/mod_sendemail/action_admin.html
Expand Up @@ -16,23 +16,23 @@ <h3>Отправка email соообщений</h3>
<div class="form-group">
<label class="control-label"[#if ERR_SMTPSERVER#] style="color:red;font-weight:bold"[#endif#]>
smtp server:
(*)

</label>
<div class="controls"><input type="text" name="smtrserver" value="[#SMTPSERVER#]" class="input form-control"></div>
</div>

<div class="form-group">
<label class="control-label"[#if ERR_PORT#] style="color:red;font-weight:bold"[#endif#]>
port:
(*)

</label>
<div class="controls"><input type="text" name="port" value="[#PORT#]" class="input form-control"></div>
</div>

<div class="form-group">
<label class="control-label"[#if ERR_SSL#] style="color:red;font-weight:bold"[#endif#]>
ssl:
(*)

</label>
<!-- <div class="controls"><input type="text" name="ssl" value="[#SSL#]" class="input form-control"></div> -->
<input type="checkbox" name="ssl" value="1"[#if SSL="1"#] checked[#endif#]>
Expand All @@ -43,7 +43,7 @@ <h3>Отправка email соообщений</h3>
<div class="form-group">
<label class="control-label"[#if ERR_FROMFIO#] style="color:red;font-weight:bold"[#endif#]>
from (name):
(*)

</label>
<div class="controls"><input type="text" name="fromfio" value="[#FROMFIO#]" class="input form-control"></div>
</div>
Expand All @@ -52,7 +52,7 @@ <h3>Отправка email соообщений</h3>
<div class="form-group">
<label class="control-label"[#if ERR_FROM#] style="color:red;font-weight:bold"[#endif#]>
from (email):
(*)

</label>
<div class="controls"><input type="text" name="from" value="[#FROM#]" class="input form-control"></div>
</div>
Expand All @@ -61,15 +61,15 @@ <h3>Отправка email соообщений</h3>
<div class="form-group">
<label class="control-label"[#if ERR_SMTPLOGIN#] style="color:red;font-weight:bold"[#endif#]>
smtp login:
(*)

</label>
<div class="controls"><input type="text" name="smtplogin" value="[#SMTPLOGIN#]" class="input form-control"></div>
</div>

<div class="form-group">
<label class="control-label"[#if ERR_SMTPPWD#] style="color:red;font-weight:bold"[#endif#] >
smtp pwd:
(*)

</label>
<div class="controls"><input name="smtppwd" value="[#SMTPPWD#]" class="input form-control" type="password"></div>
</div>
Expand Down Expand Up @@ -107,24 +107,24 @@ <h3>Отправка email соообщений</h3>

<div class="form-group">
<label class="control-label"[#if ERR_TO#] style="color:red;font-weight:bold"[#endif#]>
to:
(*)
to (email):

</label>
<div class="controls"><input type="text" name="to" value="[#TO#]" class="input form-control"></div>
</div>

<div class="form-group">
<label class="control-label"[#if ERR_SUBJECT#] style="color:red;font-weight:bold"[#endif#]>
subject:
(*)

</label>
<div class="controls"><input type="text" name="subject" value="[#SUBJECT#]" class="input form-control"></div>
</div>

<div class="form-group">
<label class="control-label"[#if ERR_MESG#] style="color:red;font-weight:bold"[#endif#]>
text msg:
(*)

</label>
<div class="controls"><input type="text" name="mesg" value="[#MESG#]" class="input form-control"></div>
</div>
Expand All @@ -133,7 +133,7 @@ <h3>Отправка email соообщений</h3>
<div class="form-group">
<label class="control-label"[#if ERR_MESG#] style="color:red;font-weight:bold"[#endif#]>
Result:
(*)

</label>
<div class="controls"><input type="text" name="result" value="[#RESULT#]" class="input form-control"></div>
</div>
Expand Down Expand Up @@ -164,7 +164,7 @@ <h3>Отправка email соообщений</h3>
<code> <br>
include_once(DIR_MODULES . 'mod_sendemail/mod_sendemail.class.php');<br>
$se = new mod_sendemail();<br>
$se->sendsmtp('email получателя', 'текст сообщения', 'тема сообщения');<br>
$se->sendsmtp('email получателя', 'текст сообщения', 'тема сообщения', 'полный путь к вложению, необязательный параметр');<br>
</code><br><br>


Expand All @@ -177,7 +177,50 @@ <h3>Отправка email соообщений</h3>
</div>
<div class="panel-body collapse" id="t10">

comming son
<br>

<form action="?" method="post" enctype="multipart/form-data" name="frmEdit" class="form-horizontal">
<fieldset>


<div class="form-group">
<label class="control-label"[#if ERR_TO#] style="color:red;font-weight:bold"[#endif#]>
to (email):

</label>
<div class="controls"><input type="text" name="to2" value="[#TO2#]" class="input form-control"></div>
</div>

<div class="form-group">
<label class="control-label"[#if ERR_MSGLEVEL#] style="color:red;font-weight:bold"[#endif#]>
msg subject:

</label>

<div class="controls"><input type="text" name="subscrsub" value="[#SUBSCRSUBJECT#]" class="input form-control"></div>
</div>


<div class="form-group">
<label class="control-label"[#if ERR_MSGLEVEL#] style="color:red;font-weight:bold"[#endif#]>
msglevel:

</label>
<div class="controls"><input type="text" name="msglevel" value="[#MSGLEVEL#]" class="input form-control"></div>
</div>



<button type="submit" name="subm" value="<#LANG_SUBMIT#>" class="btn btn-defaul btn-primary">Подписаться</button>
<input type="hidden" name="id" value="<#ID#>">
<input type="hidden" name="view_mode" value="subscribe">
<input type="hidden" name="edit_mode" value="<#EDIT_MODE#>">
<input type="hidden" name="mode" value="send">
<input type="hidden" name="data_source" value="<#DATA_SOURCE#>">
<a href="?view_mode=unsubscribe" class="btn btn-default ">Отписаться</a>
</div></div>
</fieldset>
</form>


</div> </div> </div>

0 comments on commit 234f171

Please sign in to comment.