Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
11 kB
4
Indexable
Never
<script type="text/JavaScript" src="js/utils.js"> </script>

<TABLE cellpadding="3" WIDTH="100%">
	<TR class="light">
		<TD width="1%" class="fleftu">
			<IMG src="img/docum.gif" alt="">
		</TD>
		<TD width="1%" class="fbt" NOWRAP>
			<B>{trans("Additional information:")}</B>
		</TD>
		<TD width="98%" class="frightu" NOWRAP>
			<TEXTAREA COLS="50" ROWS="5" name="document[notes]" {tip text="Enter additional information (optional)"}>{$document.notes}</TEXTAREA>
		</TD>
	</TR>

	<TR class="light">
		<TD width="1%" class="fleftu">
			<IMG src="img/docum.gif" alt="">
		</TD>
		<TD width="1%" class="fbt" NOWRAP>
			<B>{trans("Papildomos paslaugos:")}</B>
		</TD>
		<TD width="98%" class="frightu" NOWRAP>
			<table>
				<tr>
					<td>Paslaugos pavadinimas</td>
					<td>Kaina EUR</td>
					<td>Nuolaida EUR</td>
					<!-- <td>Kaina su nuolaida</td> -->
				</tr>
				{for $idx=0 to 9}
				<tr>
					<td><input TYPE="TEXT" name="document[services][{$idx}][service]" 			{tip text="paslauga" trigger="price"} value="{$document.services[{$idx}].service}"   /></td>
					<td><input TYPE="TEXT" name="document[services][{$idx}][price]"   			{tip text="kaina"} value="{$document.services[{$idx}].price}"/></td>
					<td><input TYPE="TEXT" name="document[services][{$idx}][discount]"   		{tip text="nuolaida"} value="{$document.services[{$idx}].discount}"/></td>
					<!-- <td><input TYPE="TEXT" name="document[services][{$idx}][discounted_value]" 	{tip text="galutine kaina"} value="{$document.services[{$idx}].discounted_value}"/></td> -->
				</tr>
				{/for}
			</table>
		</TD>
	</TR>
</TABLE>

<br>
<FORM name="liabilities" id="liabilities" method="post">
	<TABLE cellpadding="3" WIDTH="30%">
		<TR class="light">
			<TD width="1%" class="fleftu">
				<IMG src="img/docum.gif" alt="">
			</TD>
			<TD width="1%" class="fbt" NOWRAP>
				<B>{trans("Isipareigojimai:")}</B>
			</TD>
			<TD width="98%" class="frightu" NOWRAP>
				<table class="lmsbox">
		<THEAD>
			<tr>
				<td>

					<label>
						{trans("Check All")}
						<input type="checkbox" class="lms-ui-multi-check-all" onchange="checkAll()">
					</label>

				</td>
<!--				<td>-->
<!--					<INPUT type="checkbox" name="document[assg][{$k}][sel]" value="1" {if $a.sel} checked{/if}>-->
<!--				</td>-->
<!--				<td align="left" class="nobr">-->
<!--					<input type="checkbox" name="allbox" id="allbox" onchange="CheckAll('liabilities', this)" value="1">-->
<!--					<label for="allbox">{trans("Check All")}</label>-->
<!--				</td>-->
				<td>
					<label>{trans("Check All")}
						<INPUT TYPE="checkbox" class="lms-ui-multi-check-all" VALUE="1">
					</label>
				</td>
<!--				<td>-->
<!--				<input class="box" type="checkbox" name="allbox" id="allbox" onchange="CheckAll('liabilities', this)" value="1"><label for="allbox">{trans("Check All")}</label>-->
<!--				</td>-->
				<td>Itraukti</td>
				<td>Pavadinimas</td>
				<td>Kaina Eur/mėn.</td>
				<td>Nuolaidos</td>
				<td>Pradžia</td>
				<td>Pabaiga</td>
			</tr>
		</THEAD>
		<TBODY>

				{assign var=today value=$smarty.now|date_format:"%x 00:00:00"}{assign var=today value=$today|date_format:"%s"}





				{foreach from=$document.assg item=a  key=k}
			<tr class="{if ($a.dateto < $today && $a.dateto) || ($a.liabilityid && $a.at < $today && $a.at > 365)} blend{elseif ($a.datefrom > $today && $a.datefrom && $a.period) && !($a.suspended)} alertblend{elseif ($a.suspended)}suspended{/if}" >

				<!--<td>
					<input type="checkbox" name="markedcustomergroupid[{$customergroup.id}]"
						   value="{$customergroup.id}" class="lms-ui-multi-check" form="liabilities">
				</td>-->



				<div class="lms-ui-tab-table-column buttons">

				<td>
					<input type="checkbox" name="markedcustomergroupid[{$document.assg.$k.id}]"
						   value="{$document.assg.$k.id}" class="lms-ui-multi-check" form="liabilities">
				</td>

				</div>


				<td><INPUT type="checkbox" name="document[assg][{$k}][sel]" value="1" {if $a.sel} checked{/if}></td>


				<td><strong>{$a.name} ({$a.attribute})</strong></td>
				<td>{$a.value}</td>
				<td>
					{if isset($a.vdiscount) && $a.vdiscount != '0.00'}
						{$a.vdiscount} EUR
					{elseif $a.vdiscount == '0.00' && $a.pdiscount == '0.00'}
						{$a.vdiscount} EUR
					{elseif $a.vdiscount == '0.00' && $a.pdiscount != '0.00'}
						{$a.pdiscount} %
					{/if}
				</td>
				<td>{$a.datefrom|date_format:"%Y-%m-%d"}</td>
				<td>
					<INPUT type="TEXT" name="document[assg][{$k}][dateto]" value="{if $a.dateto}{$a.dateto}{/if}" placeholder="{trans("yyyy/mm/dd")}" {tip class="lms-ui-date" text="Enter end date in YYYY/MM/DD format (optional)" trigger="dateto"} size="10">
					<INPUT type="hidden" name="document[assg][{$k}][name]" value="{$a.name|replace:'"':'&quot;'}">
					<INPUT type="hidden" name="document[assg][{$k}][attribute]" value="{$a.attribute|replace:'"':'&quot;'}">
					<INPUT type="hidden" name="document[assg][{$k}][value]" value="{$a.value}">
					<INPUT type="hidden" name="document[assg][{$k}][datefrom]" value="{$a.datefrom}">
					<INPUT type="hidden" name="document[assg][{$k}][vdiscount]" value="{$a.vdiscount}">
					<INPUT type="hidden" name="document[assg][{$k}][pdiscount]" value="{$a.pdiscount}">
					<INPUT type="hidden" name="document[assg][{$k}][suspended]" value="{$a.suspended}">
					<INPUT type="hidden" name="document[assg][{$k}][invoice]" value="{$a.invoice}">
					<INPUT type="hidden" name="document[assg][{$k}][discounted_value]" value="{$a.discounted_value|number_format:2:".":""}">
				</td>
			</tr>
				{/foreach}



					{for $idx=0 to 9}
					<tr>
						<td>&nbsp;</td>
						<td>

					{assign var=ass value=$document.assg_new[$idx].service }


				<SELECT SIZE="1" NAME="document[assg_new][{$idx}][service]" {tip class="lms-ui-advanced-select" text="Select tariff" trigger="tariff"} >
					<OPTION VALUE="0">... {trans("select tariff")} ...</OPTION>
					{foreach from=$document.tariffs key=key item=item}

					<OPTION VALUE="{$key}"{if $ass==$key} SELECTED{/if}>{$item.name} ({$item.value}) </OPTION>
					{/foreach}
				</SELECT>

						</td>
						<td>&nbsp;</td>
						<!--td><input TYPE="TEXT" name="document[assg_new][{$idx}][price]"   			{tip text="kaina"} value="{$document.assg_new[{$idx}].price}"/></td-->
						<td><input TYPE="TEXT" name="document[assg_new][{$idx}][discount]"   		{tip text="nuolaida"} value="{$document.assg_new[{$idx}].discount}"/></td>

				<td><INPUT type="TEXT" name="document[assg_new][{$idx}][datefrom]" value="{$document.assg_new[{$idx}].datefrom}" placeholder="{trans("yyyy/mm/dd")}" {tip class="lms-ui-date" text="Enter end date in YYYY/MM/DD format (optional)" trigger="datefrom"} size="10"></td>
				<td><INPUT type="TEXT" name="document[assg_new][{$idx}][dateto]" value="{$document.assg_new[{$idx}].dateto}" placeholder="{trans("yyyy/mm/dd")}" {tip class="lms-ui-date" text="Enter end date in YYYY/MM/DD format (optional)" trigger="dateto"} size="10"></td>

					</tr>
					{/for}
					</TBODY>

				</table>
			</TD>
		</TR>
	</TABLE>
</FORM>
<br>

<TABLE cellpadding="3" WIDTH="30%">
	<!-- ------------------------------------------------------------------- -->
	<TR class="light">
		<TD width="1%" class="fleftu">
			<IMG src="img/docum.gif" alt="">
		</TD>
		<TD width="1%" class="fbt" NOWRAP>
			<B>{trans("TV priedėliai:")}</B>
		</TD>
		<TD width="98%" class="frightu" NOWRAP>
			<table class="lmsbox">
			<THEAD>
				<tr>
					<td>Itraukti</td>
					<td>Paslaugos pavadinimas</td>
					<td>Įrangos pavadinimas</td>
					<td>Serijinis Nr./MAC adresas</td>
					
					<td>Nuolaida (EUR)</td>

					<td>Pradžia</td>
					<td>Pabaiga</td>
				</tr>
			</THEAD>

				{foreach from=$document.devices item=a key=id_key}
				
				<tr>
					<td><INPUT type="checkbox" name="document[devices][{$id_key}][selected]" value="1" {if $a.selected} checked{/if}></td>
					<td>
						{assign var=tarrif_id value=$document.devices[$id_key].tarrif_id }
						<SELECT SIZE="1" NAME="document[devices][{$id_key}][tarrif_id]" {tip class="lms-ui-advanced-select" text="Select tariff" trigger="dev_tariff"} >
							<OPTION VALUE="0">... {trans("select tariff")} ...</OPTION>
							{foreach from=$document.tariffs key=key item=item}

							<OPTION VALUE="{$key}"{if $tarrif_id==$key} SELECTED{/if}>{$item.name} ({$item.value}) </OPTION>
							{/foreach}
						</SELECT>
					</td>
					<td>
						<input TYPE="TEXT" name="document[devices][{$id_key}][device_name]" {tip text="pavadinimas"
							   trigger="device_name{$id_key}" } value="{$document.devices[{$id_key}].device_name}"/>
					</td>
					<td>
						<input TYPE="TEXT" name="document[devices][{$id_key}][mac]" {tip text="mac" }
							   value="{$document.devices[{$id_key}].mac}"/>
					</td>
					<td><input TYPE="TEXT" name="document[devices][{$id_key}][discount]"   		{tip text="nuolaida"} value="{$document.devices[{$id_key}].discount}"/></td>
					<td><INPUT type="TEXT" name="document[devices][{$id_key}][datefrom]" value="{$document.devices[{$id_key}].datefrom}" placeholder="{trans("yyyy/mm/dd")}" {tip class="lms-ui-date" text="Enter end date in YYYY/MM/DD format (optional)" trigger="datefrom"} size="10"></td>
					<td><INPUT type="TEXT" name="document[devices][{$id_key}][dateto]" value="{$document.devices[{$id_key}].dateto}" placeholder="{trans("yyyy/mm/dd")}" {tip class="lms-ui-date" text="Enter end date in YYYY/MM/DD format (optional)" trigger="dateto"} size="10"></td>
				</tr>
				{/foreach}
			</table>
		</TD>
	</TR>
	<!-- ------------------------------------------------------------------- -->
</TABLE>






<form method="post" name="customermessages" id="customermessages-form1" action="?m=messagedel">
</form>

{tab_container id="customermessages" label="Customer Messages"}

{tab_header content_id="messagespanel1"}
{tab_header_cell icon="lms-ui-icon-message"}
<strong>{trans("Customer Messages:")}</strong>
{/tab_header_cell}

{/tab_header}

{*tab_contents id="messagespanel2"*}

{tab_table}
<TABLE id="customermessages-datatable" class="lmsbox-inner lms-ui-datatable" width="100%">
<COLGROUP>
	<COL style="width: 5%;">
	<COL style="width: 95%;">
</COLGROUP>
<THEAD>
<TR>
	<TH class="nobr">
		{trans("Name:")}
	</TH>
	<TH class="bold nobr">
		{trans("Checkbox:")}
	</TH>
</TR>
</THEAD>
	<TBODY>
	{foreach $document.assg as $item}
	<TR class="">
		<TD class="text-right nobr">
			{$item.name}
		</TD>
		<TD class="text-right nobr">
			<input type="checkbox" class="lms-ui-multi-check" name="itemmarks[{$item.id}]" value="{$item.id}"
				   form="customermessages-form1">
		</TD>
	</TR>
	{/foreach}
	</TBODY>
</TABLE>
{/tab_table}
{tab_button_panel}
	{tab_buttons}
		{button icon="delete" id="delete-messages" label="Delete"}
	{/tab_buttons}
	{tab_buttons}
		<label>
			{trans("Check All")}
			<input type="checkbox" class="lms-ui-multi-check-all">
		</label>
	{/tab_buttons}
{/tab_button_panel}

{*/tab_contents*}

{/tab_container}
Leave a Comment