<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
// +----------------------------------------------------------------------+
// | PHP version 4/5                                                      |
// +----------------------------------------------------------------------+
// | Copyright (c) 2004-2007 ARMIA INC                                    |
// +----------------------------------------------------------------------+
// | This source file is a part of supportpro supportdesk                 |
// +----------------------------------------------------------------------+
// | Authors: sudheesh<sudheesh@armia.com>                                  |
// |                                                                      |                // |                                                                      |
// +----------------------------------------------------------------------+
        require_once("./includes/applicationheader.php");
        include("./includes/functions/miscfunctions.php");
        include("./languages/".$_SP_language."/priority.php");
        $conn = getConnection();
  
?>
<?php include("../includes/docheader.php"); ?>

<title><?php echo HEADING_PRIORITY ?></title>
<?php include("./includes/headsettings.php"); ?>
<script language="javascript" type="text/javascript">
<!--

                function clickDelete() {
                var i=1;
                var flag = false;
                          for(i=1;i<=10;i++) {
                                                        try{
                                if(eval("document.getElementById('c" + i + "').checked") == true) {
                                                                                flag = true;
                                        break;
                                }
                                        }catch(e) {}
                        }
                        if(flag == true) {
                                                        if(confirm('<?php echo MESSAGE_JS_DELETE_TEXT; ?>')) {
                                                                document.frmExtraPriority.postback.value="DA";
                                document.frmExtraPriority.method="post";
                                document.frmExtraPriority.submit();
                                                        }
                        }
                                                else {
                                                        alert('Please select an option to delete.');
                                                }
        }



        function deleted(id) {
                        if(confirm('<?php echo MESSAGE_JS_DELETE_TEXT; ?>')) {
                                document.frmExtraPriority.id.value=id;
                                document.frmExtraPriority.postback.value="D";
                                document.frmExtraPriority.method="post";
                                document.frmExtraPriority.submit();
                        }
        }
        function clickAdd() {
             val=document.frmExtraPriority.txtExtraPrty.value;
             dot=false;
             if(val==""){
                  alert('<?php echo MESSAGE_JS_MANDATORY_ERROR; ?>');
             }else{

                        document.frmExtraPriority.postback.value="A";
                        document.frmExtraPriority.method="post";
                                                 document.frmExtraPriority.submit();

             }

        }
                function clickEdit() {
             val=document.frmExtraPriority.txtExtraPrty.value;
             dot=false;
             if(val==""){
                  alert('<?php echo MESSAGE_JS_MANDATORY_ERROR; ?>');
             }else{

                        document.frmExtraPriority.postback.value="U";
                        document.frmExtraPriority.method="post";
                                                 document.frmExtraPriority.submit();

             }

        }
                function clickSearch() {
                        document.frmExtraPriority.numBegin.value=0;
                        document.frmExtraPriority.begin.value=0;
                        document.frmExtraPriority.start.value=0;
                        document.frmExtraPriority.num.value=0;
                        document.frmExtraPriority.method="post";
                        document.frmExtraPriority.submit();
                }


-->
</script>
</head>

<body>
<!--  Top Part  -->
<?php
        include("./includes/top.php");
?>
<!--  Top Ends  -->
        <!-- header  -->
    <?php
                include("./includes/header.php");
        ?>
        <!-- end header -->
		
		
		
		<div class="content_column_small">

		 <!-- sidelinks -->

                          <?php
                                include("./includes/adminside.php");
                        ?>

         <!-- End of side links -->


		</div>
		
		
		<div class="content_column_big">
		
		
				<!-- admin header -->
				<?php
						//include("./includes/adminheader.php");
				?>
				<!--  end admin header -->
                <!-- Detail Section -->
                <?php
                        include("./includes/priority.php");
                ?>
	           <!-- End Detail section -->
       
		
		</div>

          
      
          <!-- Main footer -->
          <?php
                  include("./includes/mainfooter.php");
          ?>
          <!-- End Main footer -->
    
</body>
</html>