File manager - Edit - G:/PleskVhosts/indiaminerals.in/vgm.INFOFIXDEVELOPERS.COM/admin/Upload.aspx
Back
<%@ Page Title="" Language="C#" MasterPageFile="~/admin/main.Master" AutoEventWireup="true" CodeBehind="Upload.aspx.cs" Inherits="VGM.admin.Upload" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <form id="medicineForm" runat="server" enctype="multipart/form-data"> <div class="content-wrapper"> <div class="container"> <div class="header">Upload Document</div> <div class="form-row"> <!-- Column 1 --> <div class="col-md-3"> <!-- Animal Category --> <div class="form-group"> <label for="registration">Tag No.</label> <asp:TextBox ID="registration" class="form-control" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="registration" InitialValue="" ErrorMessage="Please enter Tag_no" Display="Dynamic" ValidationGroup="upload" ForeColor="Red"></asp:RequiredFieldValidator> </div> </div> <div class="col-md-3"> <div class="text-center"> <asp:Button ID="submit" class="btn btn-primary mt-4" ValidationGroup="upload" Text="Submit" runat="server" OnClick="submit_Click" /> </div> </div> </div> <!-- info row --> <div class="row invoice-info"> <div class="col-md-4 invoice-col"> <asp:Label ID="label1" Font-Bold="true" runat="server" Text="Owner Details" ></asp:Label><br /> <asp:Label ID="label23" Font-Bold="true" Text="Name: " runat="server"></asp:Label> <asp:Label ID="label2" Font-Bold="true" runat="server" ></asp:Label><br /> <asp:Label ID="label24" Text="Mobile No. " runat="server"></asp:Label> <asp:Label ID="label3" runat="server"></asp:Label><br /> <asp:Label ID="label25" Text="Address: " runat="server"></asp:Label> <asp:Label ID="label4" runat="server"></asp:Label> </div> <!-- /.col --> <div class="col-md-4 invoice-col"> <asp:Label ID="label5" Font-Bold="true" runat="server" Text="Animal Details" ></asp:Label><br /> <asp:Label ID="label26" Font-Bold="true" Text="Category: " runat="server"></asp:Label> <asp:Label ID="label6" Font-Bold="true" runat="server" ></asp:Label><br /> <asp:Label ID="label7" Text="D.O.B: " runat="server"></asp:Label> <asp:Label ID="label8" runat="server"></asp:Label><br /> <asp:Label ID="label9" Text="Age: " runat="server"></asp:Label> <asp:Label ID="label10" runat="server"></asp:Label><br /> <asp:Label ID="label11" Text="Color/Mark: " runat="server"></asp:Label> <asp:Label ID="label12" runat="server"></asp:Label><br /> </div> <div class="col-md-4 invoice-col"> <asp:Label ID="label13" Text="Gender: " runat="server"></asp:Label> <asp:Label ID="label14" runat="server"></asp:Label><br /> <asp:Label ID="label15" Text="Weight: " runat="server"></asp:Label> <asp:Label ID="label16" runat="server"></asp:Label><br /> <asp:Label ID="label17" Text="Species: " runat="server"></asp:Label> <asp:Label ID="label18" runat="server"></asp:Label><br /> <asp:Label ID="label19" Text="disease_diagnosis: " runat="server"></asp:Label> <asp:Label ID="label20" runat="server"></asp:Label><br /> <asp:Label ID="label21" Text="prognosis: " runat="server"></asp:Label> <asp:Label ID="label22" runat="server"></asp:Label><br /><br /><br /> </div> </div> <div class="form-group"> <!-- <label for="customFile">Custom File</label> --> <div class="form-row"> <div class="col-md-3"> <asp:TextBox ID="name" class="form-control" placeholder="Document Name" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="name" ValidationGroup="upload1" InitialValue="" ErrorMessage="Please enter Document Name" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator> </div> <div class="col-md-3"> <div class="input-group"> <asp:TextBox ID="upload" CssClass="form-control" placeholder="Choose file" runat="server"></asp:TextBox> <span class="input-group-btn"> <span class="input-group-btn"> <asp:Button ID="file" runat="server" Text="Browse" OnClientClick="updateUploadTextBox(); return false;" CssClass="btn btn-secondary" /> <asp:FileUpload ID="fileUploadControl" runat="server" style="display: none;" onchange="updateUploadTextBox();"/> <asp:CustomValidator ID="cvFileUpload" runat="server" ControlToValidate="fileUploadControl" ClientValidationFunction="validateFileUpload" ErrorMessage="Please select a file" ValidationGroup="upload1" Display="Dynamic" ForeColor="Red"></asp:CustomValidator> </span> </span> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="upload" InitialValue="" SetFocusOnError="true" Display="Dynamic" ValidationGroup="upload1" ForeColor="Red"></asp:RequiredFieldValidator> </div> </div> <div class="col-md-3"> <asp:TextBox ID="date" TextMode="Date" class="form-control" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="date" ValidationGroup="upload1" InitialValue="" ErrorMessage="Please enter Date" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator> </div> <div class="col-md-3 text-center"> <asp:Button ID="Button1" class="btn btn-secondary" ValidationGroup="upload1" Text="Add" runat="server" OnClick="add_Click" /> </div> </div> </div> <asp:GridView ID="Gridview1" runat="server" class="table table-bordered my-2" OnRowCommand="Gridview1_RowCommand" AutoGenerateColumns="false"> <Columns> <asp:TemplateField HeaderText="S_no"> <ItemTemplate> <%# Container.DataItemIndex + 1 %> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Upload Date"> <ItemTemplate> <%# Eval("upload_date") %> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Document Name"> <ItemTemplate> <%# Eval("Document_name") %> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Document Picture"> <ItemTemplate> <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Document_pic") %>' Width="100" Height="100" /> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Action"> <ItemTemplate> <asp:LinkButton runat="server" Text="Delete" CssClass="btn btn-danger " OnClientClick="return confirm('Are you sure you want to delete?');" CommandName="DeleteRow" CommandArgument='<%# Container.DataItemIndex %>' /> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> <div class="col-md-12"> <div class="text-center"> <asp:Button ID="submit2" class="btn btn-primary mt-4" Text="Submit" runat="server" OnClick="submit2_Click" /> </div> </div> </div> </div> </form> <script type="text/javascript"> function updateUploadTextBox() { var uploadTextBox = document.getElementById('<%= upload.ClientID %>'); var fileUploadControl = document.getElementById('<%= fileUploadControl.ClientID %>'); fileUploadControl.click(); // Trigger the file upload control's click event if (fileUploadControl.files.length > 0) { // Set the value of the upload TextBox to the selected file name uploadTextBox.value = fileUploadControl.files[0].name; } else { // Clear the value if no file is selected uploadTextBox.value = ""; } } </script> </asp:Content>
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings