<?php 
/* ------------------------------------------------<< BEGIN CONTENT >>-------------------------------------------------------------*/
if (isset($_GET['eq_type']) && in_array($_GET['eq_type'], array('rope', 'genie', 'letdown_line'))) {
    if (isset($_POST['eq_num1'])) {
        try {
            commit_eq($_GET['eq_type']);
            show_add_eq_form($_GET['eq_type'], "Your equipment has been added.");
        } catch (Exception $e) {
            show_add_eq_form($_GET['eq_type'], $e->getMessage());
        }
    } else {
        show_add_eq_form($_GET['eq_type'], NULL);
    }
} else {
    echo show_eq_type_menu();
}
// End: if(in_array($_GET['eq_type'],array('rope','genie','letdown_line'))
?>

    </div> <!-- End 'content' -->
   	
<div style="clear:both; display:block; visibility:hidden;"></div>
<script type="text/javascript">
<!--
var sprytextfield1 = new Spry.Widget.ValidationTextField("eq_num2_spry", "integer", {minChars:3, maxChars:7, validateOn:["blur","change"]});
var sprytextfield2 = new Spry.Widget.ValidationTextField("in_service_date_spry", "date", {format:"mm/dd/yyyy", isRequired:false, validateOn:["blur"]});
//-->
</script>
</body>
</html>
예제 #2
0
                    $text = show_eq_type_menu();
                }
            }
            // End: catch #3
        }
        // End: catch #2
    }
    // End: catch #1
    if ($eq->get('id') != NULL) {
        $text = show_one_rappel_equipment_item($eq);
    } else {
        $text = show_rappel_equipment($eq->get('item_type'), $zoom_level, $zoom_obj);
    }
} else {
    /* No equipment type was specified - we need this info before we can continue, display a menu */
    $text = show_eq_type_menu();
}
echo $text . "\n</div>\n";
/* -------------------------------------------------<< END CONTENT >>--------------------------------------------------------------*/
?>
  
    </div> <!-- End 'content' -->
   	
<div style="clear:both; display:block; visibility:hidden;"></div>
</body>
</html>

<?php 
/*******************************************************************************************************************************/
/*********************************** FUNCTION: show_header() *******************************************************************/
/*******************************************************************************************************************************/