1 <:wrap admin/xbase.tmpl title=>"Manage Relationships" :>
2 <h1>Manage step <:ifMatch [article generator] "Product":><:or:> children/<:eif:>parents</h1>
4 <p><b><:message:></b></p>
7 <p>| <a href="/cgi-bin/admin/menu.pl">Admin menu</a> | <:if Match [article generator] "Product":><a href="/cgi-bin/admin/add.pl?id=<:article id:>">Edit
8 product</a> | <a href="/cgi-bin/admin/shopadmin.pl">Manage catalogs</a> <:or
9 Match:><:if Eq [article id] [cfg articles shop]:><a href="/cgi-bin/admin/add.pl?id=<:article id:>">Edit
10 shop</a><:or Eq:><a href="/cgi-bin/admin/add.pl?id=<:article id:>"><:ifMatch
11 [article generator] "Catalog":>Edit catalog<:or:>Edit article<:eif:></a><:eif
12 Eq:><:eif Match:> |</p><:if New:><:or New:> <:if Match [article generator] "Product":><:or Match:>
13 <h2><a name="step"></a>Step children</h2>
14 <table border="0" cellspacing="0" cellpadding="0" bgcolor='#000000' width="100%" class="table">
16 <table border="0" cellpadding="6" cellspacing="1" width="100%">
17 <tr bgcolor="#FFFFFF">
19 <th width="100%">Title</th>
26 <tr bgcolor="#FFFFFF">
27 <td colspan="6" align="center">Note: Delete only removes the stepchild
28 relationship. It does not delete the article.</td>
31 <:if UserCan edit_reorder_children:article:>
33 <td colspan="6" bgcolor="#FFFFFF">Sort by: <a href="/cgi-bin/admin/reorder.pl?stepparent=<:article id:>&sort=title&refreshto=/cgi-bin/admin/add.pl?id=<:article id:>%26_t=steps%23step">title</a> | <a href="/cgi-bin/admin/reorder.pl?stepparent=<:article id:>&sort=date&refreshto=/cgi-bin/admin/add.pl?id=<:article id:>%26_t=steps%23step">date</a> | <a href="/cgi-bin/admin/reorder.pl?stepparent=<:article id:>&reverse=1&refreshto=/cgi-bin/admin/add.pl?id=<:article id:>%26_t=steps%23step">reverse</a></td>
35 <:or UserCan:><:eif UserCan:>
36 <form action="<:script:>" method="post">
37 <input type="hidden" name="id" value="<:article id:>" />
38 <input type="hidden" name="_t" value="steps" />
39 <:iterator begin kids:>
40 <tr bgcolor="#FFFFFF">
41 <td align="center" nowrap="nowrap"><:kid id:></td>
42 <td width="100%"><:kid title:></td>
43 <td nowrap="nowrap"><:ifStepKid:>
44 <:if UserCan edit_stepkid_save:article,edit_stepparent_save:kid :><input type="text" name="release_<:stepkid childId:>" value="<:date "%d/%m/%Y" stepkid release:>" size="10" /><:or UserCan:><:date "%d/%m/%Y" stepkid release:><:eif UserCan:>
45 <:or:> <:eif:></td>
46 <td nowrap="nowrap"><:ifStepKid:>
47 <:if UserCan edit_stepkid_save:article,edit_stepparent_save:kid :><input type="text" name="expire_<:stepkid childId:>" value="<:date "%d/%m/%Y" stepkid expire:>" size="10" /><:or UserCan:><:date "%d/%m/%Y" stepkid expire:><:eif UserCan:>
48 <:or:> <:eif:></td>
49 <td nowrap="nowrap"><:edit kid Edit:> <:ifStepKid:><:if UserCan edit_stepkid_delete:article,edit_stepparent_delete:kid :><a href="<:script:>?del_stepkid=1&id=<:stepkid parentId:>&stepkid=<:stepkid childId:>&_t=steps" onClick="return window.confirm('Are you sure you want to delete this Step child')">Delete</a><:or UserCan:><:eif UserCan:><:or:><:eif:> </td>
50 <td nowrap="nowrap"><:movestepkid:></td>
53 <:if UserCan edit_stepkid_save:article :>
54 <tr bgcolor="#FFFFFF">
55 <td colspan="6" align="center">
56 <input type="submit" name="save_stepkids" value="Save Changes" />
59 <:or UserCan:><:eif UserCan:>
62 <tr bgcolor="#FFFFFF">
63 <td colspan="6" align="center">No children</td>
67 <form action="<:script:>" method="post">
68 <input type="hidden" name="id" value="<:article id:>" />
69 <input type="hidden" name="_t" value="steps" />
70 <tr bgcolor="#FFFFFF">
71 <td colspan="2"><:possible_stepkids:></td>
73 <input type="text" name="release" value="01/01/2000" size="10" />
76 <input type="text" name="expire" value="31/12/2999" size="10" />
79 <input type="submit" name="add_stepkid" value="Add Stepchild" />
83 <:or Possibles:><:eif Possibles:>
86 <:eif Match:> <:eif New:> <a name="stepparents"></a>
88 <table border="0" cellspacing="0" cellpadding="0" bgcolor='#000000' width="100%" class="table">
90 <table border=0 cellpadding="6" cellspacing="1" width="100%">
91 <tr bgcolor="#FFFFFF">
93 <th width="100%">Title</th>
100 <tr bgcolor="#FFFFFF">
101 <td colspan="6" align="center">Note: Delete only removes the stepparent
102 relationship. It does not delete the article.</td>
104 <:if UserCan edit_reorder_stepparents:article :>
105 <tr bgcolor="#FFFFFF">
106 <td colspan="6">Sort by: <a href="/cgi-bin/admin/reorder.pl?stepchild=<:article id:>&sort=title&refreshto=/cgi-bin/admin/add.pl?id=<:article id:>%26_t=steps%23stepparents">title</a> | <a href="/cgi-bin/admin/reorder.pl?stepchild=<:article id:>&sort=date&refreshto=/cgi-bin/admin/add.pl?id=<:article id:>%26_t=steps%23stepparents">date</a> | <a href="/cgi-bin/admin/reorder.pl?stepchild=<:article id:>&reverse=1&refreshto=/cgi-bin/admin/add.pl?id=<:article id:>%26_t=steps%23stepparents">reverse</a></td>
108 <:or UserCan:><:eif UserCan:>
109 <form action="<:script:>" method="post">
110 <input type="hidden" name="id" value="<:article id:>" />
111 <input type="hidden" name="_t" value="steps" />
112 <:iterator begin stepparents:>
113 <tr bgcolor="#FFFFFF">
114 <td align="center" nowrap="nowrap"><a href="<:stepparent_targ admin:>"><:stepparent
116 <td width="100%"><:stepparent_targ title:></td>
118 <:if UserCan edit_stepparent_save:article,edit_stepkid_save:stepparent_targ :><input type="text" name="release_<:stepparent parentId:>" value="<:date "%d/%m/%Y" stepparent release:>" size="10" /><:or UserCan:><:date "%d/%m/%Y" stepparent release:><:eif UserCan:>
121 <:if UserCan edit_stepparent_save:article,edit_stepkid_save:stepparent_targ:><input type="text" name="expire_<:stepparent parentId:>" value="<:date "%d/%m/%Y" stepparent expire:>" size="10" /><:or UserCan:><:date "%d/%m/%Y" stepparent expire:><:eif UserCan:>
123 <td nowrap="nowrap"><a href="/cgi-bin/admin/add.pl?id=<:stepparent parentId:>">Edit</a>
124 <:if UserCan edit_stepkid_delete:stepparent_targ,edit_stepparent_delete:article :><a href="<:script:>?del_stepparent=1&id=<:stepparent childId:>&stepparent=<:stepparent parentId:>&_t=steps" onClick="return window.confirm('Are you sure you want to delete this Step parent')">Delete</a> <:or UserCan:><:eif UserCan:></td>
125 <td nowrap="nowrap"><:movestepparent:></td>
127 <:iterator end stepparents:>
128 <:if UserCan edit_stepparent_save:article :>
129 <tr bgcolor="#FFFFFF">
130 <td colspan="6" align="center">
131 <input type="submit" name="save_stepparents" value="Save Changes" />
134 <:or UserCan:><:eif UserCan:>
137 <tr bgcolor="#FFFFFF">
138 <td colspan="6" align="center">No step parents</td>
140 <:eif StepParents:> <:if StepparentPossibles:>
141 <form action="<:script:>" method="post">
142 <input type="hidden" name="id" value="<:article id:>" />
143 <input type="hidden" name="_t" value="steps" />
144 <tr bgcolor="#FFFFFF">
145 <td colspan=2><:stepparent_possibles:></td>
147 <input type="text" name="release" value="01/01/2000" size="10" />
150 <input type="text" name="expire" value="31/12/2999" size="10" />
153 <input type="submit" name="add_stepparent" value="Add Stepparent" />
157 <:or StepparentPossibles:>
158 <tr bgcolor="#FFFFFF">
159 <td colspan="6" align="center">No more possible catalogs to add.</td>
161 <:eif StepparentPossibles:>