|
From: FlorinCB <ory...@us...> - 2009-07-11 03:22:14
|
Update of /cvsroot/mxbb/mx_radiocast/admin In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv23243/mx_radiocast/admin Modified Files: admin_radio_cat.php Log Message: some fixes not commited Index: admin_radio_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/admin/admin_radio_cat.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** admin_radio_cat.php 10 Jul 2009 21:31:41 -0000 1.4 --- admin_radio_cat.php 11 Jul 2009 03:22:07 -0000 1.5 *************** *** 127,131 **** $colspan = 1; $add_sc = "<td class=\"" . (($i % 2) ? 'row1' : 'row2') . "\" align=\"center\">" . ! "<form action=\"" . append_sid("admin_radio_cat.$phpEx") . "\" method=\"post\"><input type=\"hidden\" value=\"new\" name=\"mode\" /><input type=\"hidden\" value=\"" . $catrow[$i]['cat_id'] . "\" name=\"cat_parent\"><input name=\"submit\" type=\"submit\" value=\"" . $lang['Create_sub_radio'] . "\" class=\"liteoption\">" . "</form></td>"; } --- 127,131 ---- $colspan = 1; $add_sc = "<td class=\"" . (($i % 2) ? 'row1' : 'row2') . "\" align=\"center\">" . ! "<form action=\"" . mx_append_sid("admin_radio_cat.$phpEx") . "\" method=\"post\"><input type=\"hidden\" value=\"new\" name=\"mode\" /><input type=\"hidden\" value=\"" . $catrow[$i]['cat_id'] . "\" name=\"cat_parent\"><input name=\"submit\" type=\"submit\" value=\"" . $lang['Create_sub_radio'] . "\" class=\"liteoption\">" . "</form></td>"; } *************** *** 142,149 **** 'COLSPAN' => $colspan, 'ADD_SC' => $add_sc, ! 'S_MOVE_UP' => append_sid("admin_radio_cat.$phpEx?action=move&move=-15&cat_id=" . $catrow[$i]['cat_id']), ! 'S_MOVE_DOWN' => append_sid("admin_radio_cat.$phpEx?action=move&move=15&cat_id=" . $catrow[$i]['cat_id']), ! 'S_EDIT_ACTION' => append_sid("admin_radio_cat.$phpEx?action=edit&cat_id=" . $catrow[$i]['cat_id']), ! 'S_DELETE_ACTION' => append_sid("admin_radio_cat.$phpEx?action=delete&cat_id=" . $catrow[$i]['cat_id']) ) ); --- 142,149 ---- 'COLSPAN' => $colspan, 'ADD_SC' => $add_sc, ! 'S_MOVE_UP' => mx_append_sid("admin_radio_cat.$phpEx?action=move&move=-15&cat_id=" . $catrow[$i]['cat_id']), ! 'S_MOVE_DOWN' => mx_append_sid("admin_radio_cat.$phpEx?action=move&move=15&cat_id=" . $catrow[$i]['cat_id']), ! 'S_EDIT_ACTION' => mx_append_sid("admin_radio_cat.$phpEx?action=edit&cat_id=" . $catrow[$i]['cat_id']), ! 'S_DELETE_ACTION' => mx_append_sid("admin_radio_cat.$phpEx?action=delete&cat_id=" . $catrow[$i]['cat_id']) ) ); *************** *** 171,178 **** 'TITLE' => " " . $subcatrow['cat_title'], 'DESC' => " " . preg_replace("#\n#", "<br> ", $subcatrow['cat_desc']), ! 'S_MOVE_UP' => append_sid("admin_radio_cat.$phpEx?action=move&move=-15&cat_parent=" . $catrow[$i]['cat_id'] . "&cat_id=" . $subcatrow['cat_id']), ! 'S_MOVE_UP' => append_sid("admin_radio_cat.$phpEx?action=move&move=15&cat_parent=" . $catrow[$i]['cat_id'] . "&cat_id=" . $subcatrow['cat_id']), ! 'S_EDIT_ACTION' => append_sid("admin_radio_cat.$phpEx?action=edit&cat_id=" . $subcatrow['cat_id']), ! 'S_DELETE_ACTION' => append_sid("admin_radio_cat.$phpEx?action=delete&cat_id=" . $subcatrow['cat_id']) ) ); --- 171,178 ---- 'TITLE' => " " . $subcatrow['cat_title'], 'DESC' => " " . preg_replace("#\n#", "<br> ", $subcatrow['cat_desc']), ! 'S_MOVE_UP' => mx_append_sid("admin_radio_cat.$phpEx?action=move&move=-15&cat_parent=" . $catrow[$i]['cat_id'] . "&cat_id=" . $subcatrow['cat_id']), ! 'S_MOVE_UP' => mx_append_sid("admin_radio_cat.$phpEx?action=move&move=15&cat_parent=" . $catrow[$i]['cat_id'] . "&cat_id=" . $subcatrow['cat_id']), ! 'S_EDIT_ACTION' => mx_append_sid("admin_radio_cat.$phpEx?action=edit&cat_id=" . $subcatrow['cat_id']), ! 'S_DELETE_ACTION' => mx_append_sid("admin_radio_cat.$phpEx?action=delete&cat_id=" . $subcatrow['cat_id']) ) ); *************** *** 211,215 **** 'L_RADIOCAST_CAT_TITLE' => $lang['RadioCast_Categories_Title'], 'L_RADIOCAST_CAT_EXPLAIN' => $lang['RadioCast_Categories_Explain'], ! 'S_RADIOCAST_ACTION' => append_sid("admin_radio_cat.$phpEx?cat_id=$cat_id"), 'L_CAT_TITLE' => $lang['Category_Title'], 'L_CAT_DESC' => $lang['Category_Desc'], --- 211,215 ---- 'L_RADIOCAST_CAT_TITLE' => $lang['RadioCast_Categories_Title'], 'L_RADIOCAST_CAT_EXPLAIN' => $lang['RadioCast_Categories_Explain'], ! 'S_RADIOCAST_ACTION' => mx_append_sid("admin_radio_cat.$phpEx?cat_id=$cat_id"), 'L_CAT_TITLE' => $lang['Category_Title'], 'L_CAT_DESC' => $lang['Category_Desc'], *************** *** 328,332 **** $template->assign_vars(array( ! 'S_RADIOCAST_ACTION' => append_sid("admin_radio_cat.$phpEx?cat_id=$cat_id"), 'L_CAT_DELETE' => $lang['Delete_Category'], 'L_CAT_DELETE_EXPLAIN' => $lang['Delete_Category_Explain'], --- 328,332 ---- $template->assign_vars(array( ! 'S_RADIOCAST_ACTION' => mx_append_sid("admin_radio_cat.$phpEx?cat_id=$cat_id"), 'L_CAT_DELETE' => $lang['Delete_Category'], 'L_CAT_DELETE_EXPLAIN' => $lang['Delete_Category_Explain'], *************** *** 358,362 **** // Return a message... ! $message = $lang['Category_changed_order'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); --- 358,362 ---- // Return a message... ! $message = $lang['Category_changed_order'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . mx_append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . mx_append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); *************** *** 391,395 **** 'L_RADIOCAST_CAT_TITLE' => $lang['RadioCast_Categories_Title'], 'L_RADIOCAST_CAT_EXPLAIN' => $lang['RadioCast_Categories_Explain'], ! 'S_RADIOCAST_ACTION' => append_sid("admin_radio_cat.$phpEx"), 'L_CAT_TITLE' => $lang['Category_Title'], 'L_CAT_DESC' => $lang['Category_Desc'], --- 391,395 ---- 'L_RADIOCAST_CAT_TITLE' => $lang['RadioCast_Categories_Title'], 'L_RADIOCAST_CAT_EXPLAIN' => $lang['RadioCast_Categories_Explain'], ! 'S_RADIOCAST_ACTION' => mx_append_sid("admin_radio_cat.$phpEx"), 'L_CAT_TITLE' => $lang['Category_Title'], 'L_CAT_DESC' => $lang['Category_Desc'], *************** *** 488,492 **** // Return a message... ! $message = $lang['New_category_created'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); --- 488,492 ---- // Return a message... ! $message = $lang['New_category_created'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . mx_append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . mx_append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); *************** *** 517,521 **** // Return a message... ! $message = $lang['Category_updated'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); --- 517,521 ---- // Return a message... ! $message = $lang['Category_updated'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . mx_append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . mx_append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); *************** *** 590,594 **** // Return a message... ! $message = $lang['Category_deleted'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); --- 590,594 ---- // Return a message... ! $message = $lang['Category_deleted'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . mx_append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . mx_append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); *************** *** 616,620 **** // Return a message... ! $message = $lang['Category_deleted'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); --- 616,620 ---- // Return a message... ! $message = $lang['Category_deleted'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . mx_append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . mx_append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); |