How to add tabs on the add/edit pages |
10/21/2009 8:06:33 AM |
PHPRunner Tips and Tricks | |
J
Jane author
Code from Dynamic Drive DHTML Scripts
<link rel="stylesheet" type="text/css" href="tabcontent.css" />
<script type="text/javascript">
<UL class=shadetabs id=customtabs> <LI><A href="#" rel=tcontent1 class=selected>Page 1</A> <LI><A href="#" rel=tcontent2>Page 2</A> </LI> </UL> <div style="border:1px solid gray; margin-bottom: 1em; padding: 10px"> <TABLE id="fields_block{$id}" cellSpacing=0 cellPadding=4 border=0> <tr><td> <div id="tcontent1" class="tabcontent"> <table id="fields_block{$id}" cellSpacing=0 cellPadding=4 border=0 width=100%> {BEGIN FieldName1_fieldblock}<TR><TD class=editshade_b style="PADDING-LEFT: 15px" width=150>FieldName1</TD> <TD class=editshade_lb style="PADDING-LEFT: 10px" width=250>{$FieldName1_editcontrol} </TD></TR>{END FieldName1_fieldblock} {BEGIN FieldName2_fieldblock}<TR><TD class=editshade_b style="PADDING-LEFT: 15px" width=150>FieldName2</TD> <TD class=editshade_lb style="PADDING-LEFT: 10px" width=250>{$FieldName2_editcontrol} </TD></TR>{END FieldName2_fieldblock} {BEGIN FieldName3_fieldblock}<TR><TD class=editshade_b style="PADDING-LEFT: 15px" width=150>FieldName3</TD> <TD class=editshade_lb style="PADDING-LEFT: 10px" width=250>{$FieldName3_editcontrol} </TD></TR>{END FieldName3_fieldblock} </table> </div> <div id="tcontent2" class="tabcontent"> <table id="fields_block{$id}" cellSpacing=0 cellPadding=4 border=0 width=100%> {BEGIN FieldName4_fieldblock}<TR><TD class=editshade_b style="PADDING-LEFT: 15px" width=150>FieldName4</TD> <TD class=editshade_lb style="PADDING-LEFT: 10px" width=250>{$FieldName4_editcontrol} </TD></TR>{END FieldName4_fieldblock} {BEGIN FieldName5_fieldblock}<TR><TD class=editshade_b style="PADDING-LEFT: 15px" width=150>FieldName5</TD> <TD class=editshade_lb style="PADDING-LEFT: 10px" width=250>{$FieldName5_editcontrol} </TD></TR>{END FieldName5_fieldblock} {BEGIN FieldName6_fieldblock}<TR><TD class=editshade_b style="PADDING-LEFT: 15px" width=150>FieldName6</TD> <TD class=editshade_lb style="PADDING-LEFT: 10px" width=250>{$FieldName6_editcontrol} </TD></TR>{END FieldName6_fieldblock} </table> <DIV> </td></tr> </TABLE> </div> |
|
Pfeiffer 12/9/2009 | |
Hello Support, |
C
|
charly1211 1/17/2010 |
Hi, |
A
|
aalekizoglou 3/3/2010 |
Hi, I've explained exactly that one and a half years ago in August 2008, but it hadn't found its way in phprunner yet! see http://www.asprunner...fromsearch1 I would appreciate that because I have the same problem to recreate hundreds of pages new with the tabs in each version since phpr 4.1! I would love it if it was possible to integrate that in PHPR standard version! Charly
|
C
|
charly1211 3/20/2010 |
Hi Athanasios, |
C
|
clark40 3/25/2010 |
A cross tabulation (often abbreviated as cross tab) displays the joint distribution of two or more variables. They are usually presented as a contingency . |
C
|
clark40 3/25/2010 |
A cross tabulation (often abbreviated as cross tab) displays the joint distribution of two or more variables. They are usually presented as a contingency . |
woodey2002 3/26/2010 | |
Hi Athanasios, |
B
|
bobdansei 3/26/2010 |
this worked perfect for me <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=48796&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' /> nice |
V
|
V500 5/15/2010 |
Hi, based on Jane's post, I have created a php library file with a procedure making all the required modifications on the template for tabs to work. What I have to do is add some definitions in my add/edit/view pages for where I want each tab to start (e.g, {$tabstart} {$tab1} {$tab2} {$tabend}). Definitions in Visual Editor are version safe, and always the best way to create template modifications that are upgrade safe and still even after adding or removing fields on a given page. After that in the event editor I include the library file and call the procedure with the required parameters, $xt the template, and an array with the tab captions. Of course I have altered the template and style files under Program Files in order to include Dynamic Drive's css and a required presentation style. I have used this way for a lot of projects, some of them currently upgrading to PHPR 5.2, and found it very safe. If required I can make a post with the files and a sample to show a way of how to do this. |
V
|
V500 5/15/2010 |
Hi Athanasios, |
A
|
aalekizoglou 5/15/2010 |
Vance, |
K
|
kdatlanta 5/17/2010 |
Hi Athanasios, |
A
|
aalekizoglou 5/18/2010 |
Lamont, |
V
|
vcane 5/31/2010 |
Hi Athanasios, |
W
|
webbear 6/30/2010 |
Hi Athanasios, |
P
|
paxys 12/18/2010 |
Hi Athanasios, |