Re: Модуль отслеживания посылок
Добавлено: Ср окт 15, 2014 12:10 pm
Да, можно конечно. Думаю что сегодня вечером сделаю.
Код: Выделить всё
<style type="text/css">
table {
*border-collapse: collapse; /* Для IE7 и меньше */
border-spacing: 0;
width: 100%;
border-collapse: collapse; /* Убираем двойные линии между ячейками */
}
.stripy tr{
background-image: url("javascript:function makeStripy(tabClass){var tabs=document.getElementsByTagName('table');for (var e=0;e<tabs.length;e++) if (tabs[e].className==tabClass){var rows=tabs[e].getElementsByTagName('tr');for (var i=0;i<rows.length;i++) rows[i].className+=((i % 2)==0?' oddrows':' evenrows');}} if(window.opera) makeStripy('stripy');");
}
.stripy th {
text-align: center; /* Выравнивание по левому краю */
font-weigh: bold;
font-size: large;
background: black; /* Цвет фона */
color: white; /* Цвет текста */
border-bottom: 1px solid white; /* Линия внизу ячеек */
padding: 5px; /* Поля вокруг содержимого ячеек */
}
.stripy tr:nth-child(2n+1){
background:#555;
}
.stripy tr:nth-child(2n){
background:#000;
}
.stripy .oddrows{
background:#555;
}
.stripy .evenrows{
background:#000;
}
</style>
<div class="well">
<table class="table table-striped table-condensed stripy">
<thead>
<tr>
<th>№</th>
<th>Посылка</th>
<th>Дата обновления</th>
<th>Дата</th>
<th>Состояние</th>
<th>Текущее местонахождение</th>
<th>Статус</th>
</tr>
</thead>
<tbody>
[#begin TRACK_LIST#]
<tr>
<td><font size="+1"><center><#TRACK_LIST.TRACK_NUM#></center></font></td>
<td><b><big><#TRACK_LIST.TRACK_NAME#></big></b><br><small><#TRACK_LIST.TRACK_ID#></small></td> <!-- <font size="+1"></font> -->
<td><#TRACK_LIST.TRACK_DATE#></td>
<td><#TRACK_LIST.OPER_DATE#></td>
<td><#TRACK_LIST.OPER_NAME#>: <#TRACK_LIST.ATTRIB_NAME#></td>
<td><#TRACK_LIST.OPER_POSTPLACE#></td>
[#if $T.FLAG_CHECK=="Y"#]
<td><span class="label label-success">В пути</span></td>
[#else#]
<td><span class="label">Получено</span></td>
[#endif#]
</tr>
[#end TRACK_LIST#]
</tbody>
</table>
</div>и получили вот это:LutsenkoDenis писал(а):Добавил поле "Ссылка"
Приложение обновлялось.LutsenkoDenis писал(а):...
А приложение обновлялось или устанавливалось первый раз?
Код: Выделить всё
<td><a href='#TRACK_LIST.TRACK_URL#'><#TRACK_LIST.TRACK_URL#></a></td>