<div id="show-log-{$n.id}" class="tsLog">
<h2>{$n.updated.datetime}</h2>
<p class="tsNote" data-id="{$n.id}">{$n.notes|nl2br}</p>
- <a class="tlDelete" href="{$ajaxUrl}?action=glm_members_admin_ajax&glm_action=travelNotes&option=delete&id={$lead_id}¬e_id={$n.id}" title="Delete this entry">Delete</a>
+ <a
+ class="tlDelete"
+ href="{$ajaxUrl}?action=glm_members_admin_ajax&glm_action=travelNotes&option=delete&id={$lead_id}¬e_id={$n.id}"
+ title="Delete this entry">Delete</a>
</div>
<form action="{$ajaxUrl}">
<input type="hidden" name="action" value="glm_members_admin_ajax" />
$('#edit-log-' + dataId).show();
// Hide the tsLog output
$('#show-log-' + dataId).hide();
-
+ });
+ $('.tlDelete').click(function(){
+ return confirm('This will delete this note entry! Are you sure?');
});
});
</script>
{include file='admin/travel/searchForm.html'}
{if $lead}
+ {* Download all in PDF Button *}
+ <form action="{$ajaxUrl}">
+ <input type="hidden" name="action" value="glm_members_admin_ajax" />
+ <input type="hidden" name="glm_action" value="leadPdfExport" />
+ {if isset($smarty.request.company)}<input type="hidden" name="company" value="{$smarty.request.company}">{/if}
+ {if isset($smarty.request.contact)}<input type="hidden" name="contact" value="{$smarty.request.contact}">{/if}
+ {if isset($smarty.request.from_date)}<input type="hidden" name="from_date" value="{$smarty.request.from_date}">{/if}
+ {if isset($smarty.request.to_date)}<input type="hidden" name="to_date" value="{$smarty.request.to_date}">{/if}
+ {if $smarty.request.state}
+ {foreach $smarty.request.state as $state}
+ <input type="hidden" name="state[]" value="{$state}">
+ {/foreach}
+ {/if}
+ <input type="submit" value="Download all in PDF file">
+ </form>
+ {* Download all in CSV Button *}
+ <form action="{$ajaxUrl}">
+ <input type="hidden" name="action" value="glm_members_admin_ajax" />
+ <input type="hidden" name="glm_action" value="leadCsvExport" />
+ {if isset($smarty.request.company)}<input type="hidden" name="company" value="{$smarty.request.company}">{/if}
+ {if isset($smarty.request.contact)}<input type="hidden" name="contact" value="{$smarty.request.contact}">{/if}
+ {if isset($smarty.request.from_date)}<input type="hidden" name="from_date" value="{$smarty.request.from_date}">{/if}
+ {if isset($smarty.request.to_date)}<input type="hidden" name="to_date" value="{$smarty.request.to_date}">{/if}
+ {if $smarty.request.state}
+ {foreach $smarty.request.state as $state}
+ <input type="hidden" name="state[]" value="{$state}">
+ {/foreach}
+ {/if}
+ <input type="submit" value="Download all in CSV file">
+ </form>
+
+
<form action="{$thisUrl}">
<input type="hidden" name="page" value="{$thisPage}" />
<input type="hidden" name="glm_action" value="index" />
<th> Last Name </th>
<th> Updated </th>
<th> Status </th>
+ <th> PDF </th>
+ <th> CSV </th>
</tr>
</thead>
<tbody>
<td> {$e.lname} </td>
<td> {$e.updated.datetime} </td>
<td> <b>{$e.status.name}</b> </td>
+ <td>
+ <a href="{$ajaxUrl}?action=glm_members_admin_ajax&glm_action=leadPdfExport&lead_id={$e.id}">
+ <img src="{$assetsUrl}/pdf.png">
+ </a>
+ </td>
+ <td>
+ <a href="{$ajaxUrl}?action=glm_members_admin_ajax&glm_action=leadCsvExport&lead_id={$e.id}">
+ <img src="{$assetsUrl}/csv.png">
+ </a>
+ </td>
</tr>
{/foreach}
</tbody>
<div id="travel-admin2">
{if $lead && $searching}
+ {* Download all in PDF Button *}
<form action="{$ajaxUrl}">
<input type="hidden" name="action" value="glm_members_admin_ajax" />
<input type="hidden" name="glm_action" value="leadPdfExport" />
{/if}
<input type="submit" value="Download all in PDF file">
</form>
+ {* Download all in CSV Button *}
<form action="{$ajaxUrl}">
<input type="hidden" name="action" value="glm_members_admin_ajax" />
<input type="hidden" name="glm_action" value="leadCsvExport" />