jb-data.de/template/tpl/m_tel.tpl
2025-08-11 22:23:30 +02:00

161 lines
7.4 KiB
Smarty

<!--
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
-->
<div class="row">
<div class="col-md-2">
<div class="panel panel-warning">
<header class="panel-heading"><h2 class="panel-title">Fahrer-SMS</span></h2></header>
<div class="panel-body">
<table class="no-style sortable full">
<thead>
<tr>
<!-- <th style="width:10px" align="left">Nr.</th>
<th style="width:99px" align="left">Name</th> -->
</tr>
</thead>
<tbody>
{foreach from=$mitarbeiterlist_a item=mitarbeiterlist}
<tr>
<!-- <td nowrap="nowrap">{$mitarbeiterlist.id}</td> -->
<td nowrap="nowrap" style="font-size:10pt"><strong><a href="?s=m_tel&id={$mitarbeiterlist.id}" title="Kicke zum ausw&auml;len" >{$mitarbeiterlist.name}</strong></td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
</div>
<!-- ///////////////// rechte seite -->
{if $anzeige==0}
<div class="col-md-10">
<div class="panel panel-warning">
<header class="panel-heading"><h2 class="panel-title">Fahrer-SMS</span></h2></header>
<div class="panel-body">
<span style='font-size:10pt;line-height:115%; color:#4F81BD'>Bitte den Mitarbeiter auw&auml;hlen den Sie per SMS Benachrichtigen wollen.</span>
</div>
</div>
</div>
<!-- /// rechte seite sms eingabe anzeigen-->
{elseif $anzeige==2}
<div class="col-md-10">
<div class="panel panel-warning">
<header class="panel-heading"><h2 class="panel-title">{$mitarbeiter.name} anrufen.</span></h2></header>
<div class="panel-body">
<table>
<tr><td style="width:500px;font-size:16pt">Anruf wird hergestellt</span></a></td></tr>
</table>
</div>
</div>
</div>
{else}
<div class="col-md-7">
<div class="panel panel-warning">
<header class="panel-heading"><h2 class="panel-title">SMS an {$mitarbeiter.name}</span></h2></header>
<div class="panel-body">
<form action="" method="post">
<table>
<tr> </tr>
<tr>
<td><textarea name="text" rows="7" cols="75"></textarea></td>
</tr><tr>
<td><strong>eine SMS = 150 Zeichen !!!!!! maximal 450 Zeichen (3xSMS)</strong></td>
<tr><input type="hidden" name="nummer" value="{$mitarbeiter.handy}"/> </tr>
<tr></tr>
</table>
<input type="submit" name="testsave" value="SMS senden" >
</form>
</div>
</div>
</div>
<div class="col-md-2">
<div class="panel panel-warning">
<header class="panel-heading"><h2 class="panel-title">{$mitarbeiter.name}</span></h2></header>
<div class="panel-body">
<table>
<tr>
<td style="width:99px;font-size:98pt"><a href="?s=m_tel&adress={$mitarbeiter.id}" onclick="return confirm('M&ouml;chten sie wirklich anrufen ?')"><span class="fa fa-phone-square fa-6"></span></a></td></tr>
</table>
</div>
</div>
</div>
{/if}
<!-- ///////////////////////////////// -->
<div class="col-md-10">
<div class="panel panel-warning">
<header class="panel-heading"><h2 class="panel-title">SMS-Archiv {$mitarbeiter.name}</span></h2></header>
<div class="panel-body" style="height:755px;overflow-y: scroll;">
<table class="table table-striped table-bordered">
<tbody>
{foreach from=$smsdata item=smsdata}
<tr>
<td nowrap="nowrap" style="font-size:8pt">{$smsdata.logtime|date_format:"%d.%m.%y - %H:%M"} Uhr - an: {$smsdata.e_name}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
versendet von {$smsdata.von}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
(über Gateway von {$smsdata.sender})</span>
</td>
<td nowrap="nowrap" style="font-size:8pt;align:right">{$smsdata.messageId}</span>
</td>
<td style="font-size:11pt;align:left">
<strong>&nbsp;</strong>
</td>
</tr>
<tr>
<td style="font-size:11pt;align:left">
<strong>{$smsdata.text}</strong>
</td>
{if $smsdata.status==2}
<td style="font-size:12pt">
<span class="fa fa-check-square-o"></span>
<span class="fa fa-check-square-o"></span>
</td>
{elseif $smsdata.status==1}
<td style="font-size:12pt">
<span class="fa fa fa-share-square-o"></span>
<span class="fa fa-spinner fa-pulse"></span>
</td>
{elseif $smsdata.status==8}
<td style="font-size:12pt">
<span class="fa fa fa-share-square-o"></span>
<span class="fa fa-question-circle-o"></span>
</td>
{else}
<td style="font-size:12pt">
<span class="fa fa-question-circle-o"></span>
<span class="fa fa-question-circle-o"></span>
</td>
{/if}
<td style="font-size:11pt;align:left">
<strong>&nbsp;</strong>
</td>
</tr>
</tbody>
{/foreach}
</table>
</div>
</div>
</div>
</div>
{literal}
{/literal}