Re: Модуль отслеживания посылок
Добавлено: Чт окт 16, 2014 4:10 pm
ок. гляну вечером
да....вобщем нужно отдыхать после работыdimik писал(а):Не, это все не то.
Код: Выделить всё
create table POST_TRACK_SAVE as select * from POST_TRACK;Код: Выделить всё
drop table if exists TMP_POST_PROXY;
drop table if exists TMP_POST_MAIL;
drop table if exists TMP_POST_TRACK;
drop table if exists TMP_POST_TRACKINFO;
drop table if exists POST_PROXY;
drop table if exists POST_MAIL;
drop table if exists POST_TRACKINFO;
drop table if exists POST_TRACK;Код: Выделить всё
insert into POST_TRACK(TRACK_ID, TRACK_NAME, FLAG_CHECK, TRACK_DATE, LM_DATE, TRACK_URL)
select TRACK_ID, TRACK_NAME, FLAG_CHECK, TRACK_DATE, LM_DATE, NULL from POST_TRACK_SAVE;Код: Выделить всё
drop table if exists POST_TRACK_SAVE; Код: Выделить всё
<style type="text/css">
table {
*border-collapse: collapse; /* Для IE7 и меньше */
border-spacing: 0;
width: 100%;
}
.bordered {
border: solid #000 1px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 10px;
-webkit-box-shadow: 0 1px 1px #000;
-moz-box-shadow: 0 1px 1px #000;
box-shadow: 0 1px 1px #000;
background-color: #2A2A2A;
}
.bordered tr:hover {
background: #333333;
-o-transition: all 0.1s ease-in-out;
-webkit-transition: all 0.1s ease-in-out;
-moz-transition: all 0.1s ease-in-out;
-ms-transition: all 0.1s ease-in-out;
transition: all 0.1s ease-in-out;
}
.bordered td, .bordered th {
border-left: 1px solid #000000;
border-top: 1px solid #000000;
padding: 10px;
text-align: left;
text-shadow: 0px 0px 1px rgba(0, 0, 0, 1);
}
.bordered th {
background-color: #2A2A2A;
background-image: -webkit-gradient(linear, left top, left bottom, from(#333333), to(#2A2A2A));
background-image: -webkit-linear-gradient(top, #333333, #2A2A2A);
background-image: -moz-linear-gradient(top, #333333, #2A2A2A);
background-image: -ms-linear-gradient(top, #333333, #2A2A2A);
background-image: -o-linear-gradient(top, #333333, #2A2A2A);
background-image: linear-gradient(top, #333333, #2A2A2A);
-webkit-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
-moz-box-shadow:0 1px 0 rgba(255,255,255,.8) inset;
box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
border-top: none;
}
.bordered td:first-child, .bordered th:first-child {
border-left: none;
}
.bordered th:first-child {
-moz-border-radius: 6px 0 0 0;
-webkit-border-radius: 6px 0 0 0;
border-radius: 10px 0 0 0;
}
.bordered th:last-child {
-moz-border-radius: 0 6px 0 0;
-webkit-border-radius: 0 6px 0 0;
border-radius: 0 10px 0 0;
}
.bordered tr:last-child td:first-child {
-moz-border-radius: 0 0 0 6px;
-webkit-border-radius: 0 0 0 6px;
border-radius: 0 0 0 10px;
}
.bordered tr:last-child td:last-child {
-moz-border-radius: 0 0 6px 0;
-webkit-border-radius: 0 0 6px 0;
border-radius: 0 0 10px 0;
}
text { color: #FFFFFF}
</style>
<div class="well">
<table class="table table-striped table-condensed bordered">
<thead>
<tr>
<th><center><text>Посылка</text></center></th>
<th><center><text>Текущее местонахождение</text></center></th>
<th><center><text>Дата</text></center></th>
<th><center><text>Статус</text></center></th>
</tr>
</thead>
<tbody>
[#begin TRACK_LIST#]
<tr>
<td width=300px><center><font color="#EAEAEA"><strong><font size="+1" face="Arial black"><a style="color: #EAEAEA" href="<#TRACK_LIST.TRACK_URL#>" target="_blank"><#TRACK_LIST.TRACK_NAME#></font></strong><br><#TRACK_LIST.TRACK_ID#></font></center></td>
<td><font size="+1"><font color="#EAEAEA"><i><#TRACK_LIST.OPER_NAME#></i></font> <font color="#EAEAEA"><#TRACK_LIST.ATTRIB_NAME#></font> <font face="Palatino Linotype" color="#EAEAEA"><u><#TRACK_LIST.OPER_POSTPLACE#></u></font></font></td>
<td width=70px><center><strong><text><#TRACK_LIST.OPER_DATE#></text></strong></center></td>
[#if $T.FLAG_CHECK=="Y"#]
<td width=70px><center><span class="label label-success"><text>В пути</text></span><center></td>
[#else#]
<td width=70px><center><span class="label"><text>Получено</text></span></center></td>
[#endif#]
</tr>
[#end TRACK_LIST#]
</tbody>
</table>
</div>