This topic is locked

Making Buttons Work

8/26/2008 12:46:01 PM
PHPRunner General questions
M
mickmouser author

Please Help: Following is the code from one of my pages. There are 3 buttons: 1. Add To My Collection 2. Export Selected 3. Print Selected. The export and the print both work correctly. When I click "add to my collection" I get "page not found" error. I must be missing a line that connects the button to moving the selected items to the correct location. But, I anything but a programmer and I do not have a clue what it could be. Thanks, Janice
<!-- controls table -->

<TR>

<TD class=body2 width="100%" colSpan=2 height=1></TD></TR></TBODY></TABLE>

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0

disptype="controltable1">

<TBODY>

<TR>

<TD class=body3 style="PADDING-RIGHT: 10px; PADDING-TOP: 12px"

align=right colSpan=3 height=40>{if $display_grid}

<SPAN name="record_controls">

{if $allow_export}&nbsp; <SPAN class=buttonborder><INPUT class=button onclick="var c=0; if(frmAdmin.elements['selection[]'].length==undefined &amp;&amp; frmAdmin.elements['selection[]'].checked) c=1; else for (i=0;i<frmAdmin.elements['selection[]'].length;++i) if (frmAdmin.elements['selection[]'][i].checked) c=1; if(c==0) return true; frmAdmin.action='actiontoys_events.php';frmAdmin.target='_blank';frmAdmin.submit(); frmAdmin.action='actiontoys_list.php'; frmAdmin.target='_self';" type=button value="Add To My Collection" disptype="control1"></SPAN>
&nbsp; {/if}&nbsp; {if $allow_export}&nbsp; <SPAN class=buttonborder><INPUT class=button onclick="var c=0; if(frmAdmin.elements['selection[]'].length==undefined &amp;&amp; frmAdmin.elements['selection[]'].checked) c=1; else for (i=0;i<frmAdmin.elements['selection[]'].length;++i) if (frmAdmin.elements['selection[]'][i].checked) c=1; if(c==0) return true; frmAdmin.action='actiontoys_export.php';frmAdmin.target='_blank';frmAdmin.submit(); frmAdmin.action='actiontoys_list.php'; frmAdmin.target='_self';" type=button value="Export selected" disptype="control1"></SPAN>
&nbsp;{/if}&nbsp; {if $allow_export}&nbsp; <SPAN class=buttonborder><INPUT class=button onclick="var c=0;if(frmAdmin.elements['selection[]'].length==undefined &amp;&amp; frmAdmin.elements['selection[]'].checked) c=1; else for (i=0;i<frmAdmin.elements['selection[]'].length;++i) if (frmAdmin.elements['selection[]'][i].checked) c=1; if(c==0) return true; frmAdmin.action='actiontoys_print.php';frmAdmin.target='_blank';frmAdmin.submit(); frmAdmin.action='actiontoys_list.php'; frmAdmin.target='_self';" type=button value="Print selected" disptype="control1"></SPAN>
&nbsp; {/if}&nbsp; </SPAN>{/if}</TD></TR>

<TR>

<TD class=navigat_left width=5 height=15>&nbsp;</TD>

<TD class=navigat width="100%">&nbsp;</TD>

<TD class=navigat_right width=5>&nbsp;</TD></TR></TBODY></TABLE><!-- end controls table -->

J
Jane 8/27/2008

Janice,
please clarify what you use "Add To My Collection" button for.

M
mickmouser author 1/29/2009

Janice,

please clarify what you use "Add To My Collection" button for.


My Users search the database, find the collectible they want and then click the check box, then click Copy to My Collection. From there, they can print or export their items to their own computer.
Now, I have an additional problem. All was working great when I had only three menu tabs. Now that I have added 8 more, only the first 3 work correctly in the admin mode.
My users cannot add, delete, or modify my database. They can only search, view, print, or export. All the menu tabs are working correctly for them.
From admin, I need to be able to edit records. In visual editor, everything looks and is correct. All the pages look exactly how they should. But, when I complete the build, the edit/view/check box and the buttons are not there.
There must a permission or something that I need to change, but I have no idea how to do it.
Thank you, Janice www.priceguidesunlimited.com <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=37278&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' /> <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=37278&image=2&table=forumreplies' class='bbc_emoticon' alt=':(' /> <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=37278&image=3&table=forumreplies' class='bbc_emoticon' alt=':(' />

J
Jane 1/30/2009

Janice,
It's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.