diff options
Diffstat (limited to 'templates/list_xref_generic.tpl')
| -rw-r--r-- | templates/list_xref_generic.tpl | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/templates/list_xref_generic.tpl b/templates/list_xref_generic.tpl new file mode 100644 index 0000000..5c712e3 --- /dev/null +++ b/templates/list_xref_generic.tpl @@ -0,0 +1,98 @@ +{* if isset( $pageInfo.$source ) *} + {assign var=xrefcnt value=$pageInfo.$source|@count} + {jstab title="$source_title ($xrefcnt)"} + {legend legend=$source_title} + <div class="row"> + <table> + <thead> + <tr> + <th>ID</th> + <th>Link</th> + <th>Data</th> + <th>Note</th> + {if $source ne 'history' } + <th>Started</th> + {else} + <th>Ended</th> + {/if} + </td> + {if $gBitSystem->isFeatureActive( 'contact_list_last_modified' )} + <th>Updated</th> + {/if} + <th>Edit</th> + </tr> + </thead> + <tbody> + {section name=xref loop=$pageInfo.$source} + <tr class="{cycle values="even,odd"}" title="{$pageInfo.title|escape}"> + <td> + {$pageInfo.$source[xref].source_title|escape} + </td> + <td> + {if isset($pageInfo.$source[xref].xref) && ($pageInfo.$source[xref].xref <> '') } + {$pageInfo.$source[xref].xref|escape} + {smartlink ititle="Link to" ifile="display_contact.php" ibiticon="icons/accessories-text-editor" content_id=$pageInfo.$source[xref].xref} + {else} + ------ + {/if} + </td> + <td> + {$pageInfo.$source[xref].xkey|escape} {$pageInfo.$source[xref].xkey_ext|escape} + </td> + <td> + {$pageInfo.$source[xref].data|escape} + </td> + <td> + {if $source ne 'history' } + {$pageInfo.$source[xref].start_date|bit_short_date} + {else} + {$pageInfo.$source[xref].end_date|bit_short_date} + {/if} + </td> + {if $gBitSystem->isFeatureActive( 'contact_list_last_modified' )} + <td> + {$pageInfo.xref[xref].last_update_date|bit_long_date} + </td> + {/if} + <td> + <span class="actionicon"> + {if $gBitUser->hasPermission( 'p_contact_view_detail' )} + {smartlink ititle="View" ifile="view_xref.php" ibiticon="icons/view-fullscreen" xref_id=$pageInfo.$source[xref].xref_id} + {/if} + {if $gBitUser->hasPermission( 'p_contact_update' ) and $source ne 'history' } + {if $pageInfo.$source[xref].source eq 'KEY_B' } + {smartlink ititle="Seal" ifile="edit_xref.php" ibiticon="icons/edit-redo" xref_id=$pageInfo.$source[xref].xref_id expunge=2} + {else} + {smartlink ititle="Edit" ifile="edit_xref.php" ibiticon="icons/accessories-text-editor" xref_id=$pageInfo.$source[xref].xref_id} + {/if} + {/if} + {if $gBitUser->hasPermission( 'p_contact_expunge' ) and $pageInfo.$source[xref].source ne 'KEY_B' } + {if $source eq 'history' } + {smartlink ititle="Restore" ifile="edit_xref.php" ibiticon="icons/edit-undo" xref_id=$pageInfo.$source[xref].xref_id expunge=-1} + {else} + {smartlink ititle="Delete" ifile="edit_xref.php" ibiticon="icons/edit-delete" xref_id=$pageInfo.$source[xref].xref_id expunge=1} + {/if} + {/if} + </span> + </td> + </tr> + {sectionelse} + <tr class="norecords"> + <td colspan="3"> + {tr}No {$source} records found{/tr} + </td> + </tr> + {/section} + </tbody> + </table> + </div> + {if $gBitUser->hasPermission('p_edit_contact')} + <div> + {if $source ne 'history' } + {smartlink ititle="Add additional detail record" ifile="add_xref.php" ibiticon="icons/bookmark-new" content_id=$pageInfo.content_id xref_type=1} + {/if} + </div> + {/if} + {/legend} + {/jstab} +{* /if *}
\ No newline at end of file |
