コード例 #1
0
if ($_REQUEST['delete'] != '') {
    echo "Deleting...";
    $sql = "SELECT * FROM form_fields WHERE form_id=4 and field_id='" . jb_escape_sql($_REQUEST['field_id']) . "'";
    $result = JB_mysql_query($sql);
    $row = mysql_fetch_array($result, MYSQL_ASSOC) or die(mysql_error());
    if (JB_is_reserved_template_tag($row['template_tag'])) {
        $JBMarkup->error_msg("<b>Cannot Delete:</b>  This field contains a reserved 'Template Tag' and is needed by the system. Click on the 'R' icon next to the field for more information. Instead of deleting, please rename this field / change the type / move up or down. ");
    } else {
        echo "Deleting...";
        JB_cache_del_keys_for_form(4);
        JB_delete_field($_REQUEST['field_id']);
        echo "OK!";
        $_REQUEST['field_id'] = "";
    }
}
if (JB_is_table_unsaved("employers")) {
    require dirname(__FILE__) . '/build_employers_table.php';
    JB_cache_del_keys_for_form(4);
}
?>
<table>

<tr>
	<td valign="top">
	<?php 
JB_build_sort_fields(4, 1);
JB_build_sort_fields(4, 2);
JB_build_sort_fields(4, 3);
if ($_REQUEST['action'] == 'move_up') {
    JB_move_field_up(4, $_REQUEST['field_id']);
    JB_cache_del_keys_for_form(4);
コード例 #2
0
ファイル: postform.php プロジェクト: vinothtimes/phpdoc
}
if ($_REQUEST['delete'] != '') {
    echo "Deleting...";
    $sql = "SELECT * FROM form_fields WHERE form_id=1 and field_id='" . jb_escape_sql($_REQUEST['field_id']) . "'";
    $result = JB_mysql_query($sql);
    $row = mysql_fetch_array($result, MYSQL_ASSOC) or die(mysql_error());
    if (JB_is_reserved_template_tag($row['template_tag'])) {
        $JBMarkup->error_msg("<b>Cannot Delete:</b> This field contains a reserved 'Template Tag' and is needed by the system. Click on the 'R' icon next to the field for more information. Instead of deleting, please rename this field / change the type / move up or down.");
    } else {
        JB_delete_field($_REQUEST['field_id']);
        JB_cache_del_keys_for_form(1);
        echo "OK!";
        $_REQUEST['field_id'] = "";
    }
}
if (JB_is_table_unsaved("posts_table")) {
    //echo "<br>Note: This form's database structure was not updated yet. <b>Please click 'Save Changes' button to update the database structure.</b>";
    require dirname(__FILE__) . '/build_posts_table.php';
    JB_cache_del_keys_for_form(1);
}
//$mode = "EDIT";
?>
<table >

<tr>
	<td valign="top">
	<?php 
JB_build_sort_fields(1, 1);
JB_build_sort_fields(1, 2);
JB_build_sort_fields(1, 3);
if ($_REQUEST['action'] == 'move_up') {
コード例 #3
0
ファイル: resumeform.php プロジェクト: vinothtimes/dchqtest
}
if ($_REQUEST['delete'] != '') {
    echo "Deleting...";
    $sql = "SELECT * FROM form_fields WHERE form_id=2 and field_id='" . jb_escape_sql($_REQUEST['field_id']) . "'";
    $result = JB_mysql_query($sql);
    $row = mysql_fetch_array($result, MYSQL_ASSOC) or die(mysql_error());
    if (JB_is_reserved_template_tag($row['template_tag'])) {
        $JBMarkup->error_msg("<b>Cannot Delete:</b> This field contains a reserved 'Template Tag' and is needed by the system. Click on the 'R' icon next to the field for more information. Instead of deleting, please rename this field / change the type / move up or down.");
    } else {
        JB_delete_field($_REQUEST['field_id']);
        JB_cache_del_keys_for_form(2);
        $JBMarkup->ok_msg("Field deleted");
        $_REQUEST['field_id'] = "";
    }
}
if ($field = JB_is_table_unsaved("resumes_table")) {
    require dirname(__FILE__) . '/build_resumes_table.php';
    JB_cache_del_keys_for_form(2);
}
?>
<table>

<tr>
	<td valign="top">
	<?php 
JB_build_sort_fields(2, 1);
JB_build_sort_fields(2, 2);
JB_build_sort_fields(2, 3);
if ($_REQUEST['action'] == 'move_up') {
    JB_move_field_up(2, $_REQUEST['field_id']);
    JB_cache_del_keys_for_form(2);
コード例 #4
0
if ($_REQUEST['delete'] != '') {
    echo "Deleting...";
    $sql = "SELECT * FROM form_fields WHERE form_id=5 and field_id='" . jb_escape_sql($_REQUEST['field_id']) . "'";
    $result = JB_mysql_query($sql);
    $row = mysql_fetch_array($result, MYSQL_ASSOC) or die(mysql_error());
    if (JB_is_reserved_template_tag($row['template_tag'])) {
        $JBMarkup->error_msg("<b>Cannot Delete:</b>  This field contains a reserved 'Template Tag' and is needed by the system. Click on the 'R' icon next to the field for more information. Instead of deleting, please rename this field / change the type / move up or down.");
    } else {
        echo "Deleting...";
        JB_delete_field($_REQUEST['field_id']);
        JB_cache_del_keys_for_form(5);
        echo "OK!";
        $_REQUEST['field_id'] = "";
    }
}
if (JB_is_table_unsaved("users")) {
    require dirname(__FILE__) . '/build_users_table.php';
    JB_cache_del_keys_for_form(5);
}
?>
<table>

<tr>
	<td valign="top">
	<?php 
JB_build_sort_fields(5, 1);
JB_build_sort_fields(5, 2);
JB_build_sort_fields(5, 3);
if ($_REQUEST['action'] == 'move_up') {
    JB_move_field_up(5, $_REQUEST['field_id']);
}
コード例 #5
0
ファイル: profileform.php プロジェクト: vinothtimes/phpdoc
if ($_REQUEST['delete'] != '') {
    echo "Deleting...";
    $sql = "SELECT * FROM form_fields WHERE form_id=3 and field_id='" . jb_escape_sql($_REQUEST['field_id']) . "'";
    $result = JB_mysql_query($sql);
    $user_row = mysql_fetch_array($result, MYSQL_ASSOC) or die(mysql_error());
    if (JB_is_reserved_template_tag($user_row['template_tag'])) {
        $JBMarkup->error_msg("<b>Cannot Delete:</b>  This field contains a reserved 'Template Tag' and is needed by the system. Click on the 'R' icon next to the field for more information. Instead of deleting, please rename this field / change the type / move up or down.");
    } else {
        echo "Deleting...";
        JB_delete_field($_REQUEST['field_id']);
        JB_cache_del_keys_for_form(3);
        echo "OK!";
        $_REQUEST['field_id'] = "";
    }
}
if (JB_is_table_unsaved("profiles_table")) {
    require dirname(__FILE__) . '/build_profiles_table.php';
    JB_cache_del_keys_for_form(3);
}
?>
<table>

<tr>
	<td valign="top">
	<?php 
JB_build_sort_fields(3, 1);
JB_build_sort_fields(3, 2);
JB_build_sort_fields(3, 3);
if ($_REQUEST['action'] == 'move_up') {
    JB_move_field_up(3, $_REQUEST['field_id']);
    JB_cache_del_keys_for_form(3);