PHP Classes

File: app/pages/create_ticket.php

Recommend this page to a friend!
  Classes of VITOR GABRIEL M. DANTAS   Pleiades   app/pages/create_ticket.php   Download  
File: app/pages/create_ticket.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Pleiades
Application to implement an issue-tracking system
Author: By
Last change:
Date: 6 months ago
Size: 4,313 bytes
 

Contents

Class file image Download
<?php
session_start
();
require
__DIR__.'/../config.php';
include
__DIR__.'../../scripts/status.php';
include
__DIR__.'../../scripts/verifyauth.php';

$TITLEPAGE = 'Criar Ticket - '.$SERVER_NAME;
include
__DIR__ . '/static/header.php';
?>
<div class="mininav">
            <nav aria-label="breadcrumb">
                <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="System.php"><i class="fa-solid fa-circle-chevron-left"></i> Voltar</a></li>
                    <li class="breadcrumb-item active" aria-current="page"><i class="fa-solid fa-circle-plus"></i> Criar Ticket</li>
                </ol>
            </nav>
        </div>
        <?php
           
if(isset($_SESSION['Msg'])){
                echo
$_SESSION['Msg'];
                unset(
$_SESSION['Msg']);
            }
            else{
                unset(
$_SESSION['Msg']);
            }
           
?>
<section class="createticketheader">
            <h1><i class="fa-solid fa-ticket-simple"></i> Criação de ticket</h1>
            <form class="formticket" action="../scripts/createnewticket.php" method="POST" enctype="multipart/form-data">
                <div class="container">
                    <div class="row">
                        <div class="col">
                            <div class="input-group mb-3">
                                <span class="input-group-text" id="newtickettitlelabel"><i class="fa-solid fa-envelope"></i> Assunto do ticket</span>
                                <input type="text" id="newtickettitle" name="newtickettitle" class="form-control" placeholder="Digite o assunto do ticket" aria-describedby="newtickettitlelabel" minlength="5" maxlength="80" required/>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col">
                            <div class="mb-3">
                                <label for="newticketmsg" class="form-label"><i class="fa-solid fa-comments"></i> Mensagem do ticket</label>
                                <textarea class="form-control" id="newticketmsg" name="newticketmsg" rows="9" minlength="5" maxlength="1000" required></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col">
                            <div class="mb-3">
                                <label for="newticketdesign" class="form-label"><i class="fa-regular fa-paper-plane"></i> Setor de interesse</label>
                                <select class="form-select" id="newticketdesign" name="newticketdesign" aria-label="Seleção de setor" required>
                                    <?php
                                       
for($b=0; $b<count($TICKET_TEAM); $b++){
                                            echo
'<option value="'.$TICKET_TEAM[$b].'">'.$TICKET_TEAM[$b].'</option>';
                                        }
                                   
?>
</select>
                            </div>
                        </div>
                        <div class="col">
                            <div class="mb-3">
                                <label for="newticketsla" class="form-label"><i class="fa-solid fa-stopwatch"></i> SLA</label>
                                <select class="form-select" id="newticketsla" name="newticketsla" aria-label="Seleção de SLA" required>
                                    <?php
                                       
for($c=0; $c<count($TICKET_SLA); $c++){
                                            echo
'<option value="'.$TICKET_SLA [$c].'">'.$TICKET_SLA[$c].'hrs</option>';
                                        }
                                   
?>
</select>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <button class="btn btn-primary" type="submit"><i class="fa-solid fa-circle-plus"></i> Criar Ticket</button>
                    </div>
                </div>
            </form>
        </section>
<?php
include __DIR__ . '/static/footer.php';
?>