This topic is locked

Blank Add Page

11/11/2007 2:16:31 PM
PHPRunner General questions
E
encgraphics author

I have built a jobs database using version 4.1. All of the sites works beautifully, EXCEPT for the _jobs_add.php page. It is completely blank when I click on it. Also, the add inline does not work in the list page. Funny thing is, this is the major peice of the puzzle for this site.
Here is the _jobs_add.php page for reference:

<html>

<head><title>7. Add a Job</title>

<link REL="stylesheet" href="include/style.css" type="text/css">

{$includes}

</head>
<body bgcolor=white {$bodyonload}>

{include_if_exists file="include/header.php"}

<form name="editform" encType="multipart/form-data" method="post" action="_jobs_add.php" {$onsubmit}>
{doevent name="AddOnLoad"}
<TABLE CELLPADDING=0 CELLSPACING=0 align=center border=0>

<tr><td>

<b class="xtop"><b class="xb1b"></b><b class="xb2b"></b><b class="xb3b"></b><b class="xb4b"></b></b>

<div class="xboxcontentb">

<table cellpadding=0 class="main_table" cellspacing=0 border=0>

<tr><td>

<table cellpadding=0 cellspacing=0 border=0 width=100%>

<tr><td class=upeditmenu width=100% valign=middle align=center height=35>

7. Add a Job, Add new record

</td></tr>

</table>

</td></tr>

<tr><td width=100% height=1px bgcolor=white></td></tr>
{if $message!=""}

<tr><td width=100% align=center style="padding:10px">

<table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td>

<b class="xtop"><b class="xb1u"></b><b class="xb2u"></b><b class="xb3u"></b><b class="xb4u"></b></b>

<div class="xboxcontentb">

<table cellpadding=5 cellspacing=0 border=0 width=100% align=center>

<tr><td colspan=2 align=center class=downedit2>{$message}</td></tr>

</table>

</div>

<b class="xbottom"><b class="xb4u"></b><b class="xb3u"></b><b class="xb2u"></b><b class="xb1u"></b></b>

</td></tr></table>

</td></tr>

{/if}
<tr><td style="padding:10px">

<div class="xboxcontent">

<table cellpadding=4 cellspacing=0 border=0>
<tr>

<td class=editshadeleft_b2 width=150 style="padding-left:15px;">state</td>

<td width=250 class=editshaderight_lb2 style="padding-left:10px;">

{build_edit_control field="state" mode="add" value=$value_state}

 <img src="images/icon_required.gif">

</td></tr>

<tr>

<td class=editshade_b width=150 style="padding-left:15px;">city</td>

<td width=250 class=editshade_lb style="padding-left:10px;">

{build_edit_control field="city" mode="add" value=$value_city}

 <img src="images/icon_required.gif">

</td></tr>

<tr>

<td class=editshade_b width=150 style="padding-left:15px;">zip</td>

<td width=250 class=editshade_lb style="padding-left:10px;">

{build_edit_control field="zip" mode="add" value=$value_zip}

</td></tr>

<tr>

<td class=editshade_b width=150 style="padding-left:15px;">category</td>

<td width=250 class=editshade_lb style="padding-left:10px;">

{build_edit_control field="category" mode="add" value=$value_category}

 <img src="images/icon_required.gif">

</td></tr>

<tr>

<td class=editshade_b width=150 style="padding-left:15px;">apply</td>

<td width=250 class=editshade_lb style="padding-left:10px;">

{build_edit_control field="apply" mode="add" value=$value_apply}

 <img src="images/icon_required.gif">

</td></tr>

<tr>

<td class=editshade_b width=150 style="padding-left:15px;">title</td>

<td width=250 class=editshade_lb style="padding-left:10px;">

{build_edit_control field="title" mode="add" value=$value_title}

 <img src="images/icon_required.gif">

</td></tr>

<tr>

<td class=editshade_b width=150 style="padding-left:15px;">description</td>

<td width=250 class=editshade_lb style="padding-left:10px;">

{build_edit_control field="description" mode="add" value=$value_description}

</td></tr>

<tr>

<td class=editshade_b width=150 style="padding-left:15px;">requirements</td>

<td width=250 class=editshade_lb style="padding-left:10px;">

{build_edit_control field="requirements" mode="add" value=$value_requirements}

</td></tr>

<tr>

<td class=editshade_b width=150 style="padding-left:15px;">jobtype</td>

<td width=250 class=editshade_lb style="padding-left:10px;">

{build_edit_control field="jobtype" mode="add" value=$value_jobtype}

</td></tr>

<tr>

<td class=editshade_b width=150 style="padding-left:15px;">salary</td>

<td width=250 class=editshade_lb style="padding-left:10px;">

{build_edit_control field="salary" mode="add" value=$value_salary}

</td></tr>

<tr>

<td class=editshade_b width=150 style="padding-left:15px;">company</td>

<td width=250 class=editshade_lb style="padding-left:10px;">

{build_edit_control field="company" mode="add" value=$value_company}

</td></tr>

<tr>

<td class=editshade_b width=150 style="padding-left:15px;">postdate</td>

<td width=250 class=editshade_lb style="padding-left:10px;">

{build_edit_control field="postdate" mode="add" value=$value_postdate}

</td></tr>

<tr><td colspan=2 align=left class=downedit>

<img src="images/icon_required.gif"> - Required field

</td></tr>

<tr><td colspan=2 align=center class=downedit>

<span class=buttonborder><input class=button type=submit value=" Save " name=submit1></span>

<span class=buttonborder><input class=button type=reset value=" Reset "></span>

<span class=buttonborder><input class=button type=button value=" Back to list " onclick="window.location.href='_jobs_list.php?a=return'"></span>

<input type=hidden name="a" value="added">

</td></tr>

</form>



</table>

</div>

<b class="xbottom"><b class="xb4a"></b><b class="xb3a"></b><b class="xb2a"></b><b class="xb1a"></b></b>

</td></tr>

</table>

</div>

<b class="xbottom"><b class="xb4b3"></b><b class="xb3b3"></b><b class="xb2b3"></b><b class="xb1b3"></b></b>

</td></tr></table><br>

{include_if_exists file="include/footer.php"}
{$linkdata}

&lt;script>SetToFirstControl();</script>

</body>

</html>
E
encgraphics author 11/11/2007

Well, I fixed it. I had an invalid function code in the date field.