";
// no need to check if the sidebar was generated. The layout of
// this page already takes all available espace.
$output .= awpcp_admin_sidebar();
if (isset($message) && !empty($message)) {
$output .= $message;
}
$output .= "
";
$output .= __("Below you can add and edit your listing fees. As an example you can add an entry set at $9.99 for a 30 day listing, then another entry set at $17.99 for a 60 day listing. For each entry you can set a specific number of images a user can upload. If you have allow images turned off in your main configuration settings the value you add here will not matter as an upload option will not be included in the ad post form. You can also set a text limit for all ads. The value is in characters.","AWPCP");
$output .= "
";
if (function_exists('fpc_check_awpcp_ver')) {
$output .= '
' .
__("You're using the Fee Per Category Module. Be sure to either assign all categories to a fee plan, or create at least one or more plans with no categories assigned.",'AWPCP') .
'
';
}
///////
// Handle case of adding new settings
$create = false;
$terms = array();
if (isset($_REQUEST['addnewlistingfeeplan']) && !empty($_REQUEST['addnewlistingfeeplan'])) {
$terms[] = array_fill(0, 8, '');
$create = true;
} else {
$query = "SELECT adterm_id,adterm_name,amount,rec_period,rec_increment,";
$query.= "imagesallowed,is_featured_ad_pricing FROM " . AWPCP_TABLE_ADFEES;
$res = awpcp_query($query, __LINE__);
if (mysql_num_rows($res)) {
while ($rsrow = mysql_fetch_row($res)) {
$terms[] = $rsrow;
}
}
}
if (!$create) {
$output .= "