Sindbad~EG File Manager

Current Path : C:/Inetpub/vhosts/yuksekkariyer.com/httpdocs/admin/
Upload File :
Current File : C:/Inetpub/vhosts/yuksekkariyer.com/httpdocs/admin/UrunEdit.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" enableEventValidation="false" ClientIDMode="Static" ValidateRequest="false" CodeFile="UrunEdit.aspx.cs" Inherits="Admin_Default2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
     <!---TinyMce Editör-->

<link rel="stylesheet" type="text/css" media="screen" href="../elfinder/css/elfinder.min.css">
<script type="text/javascript" src="../elfinder/js/elfinder.min.js"></script>
    <%-- Jquery --%>
<link rel="stylesheet" type="text/css" media="screen" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/smoothness/jquery-ui.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" ></script> 
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js"></script>
    <%-- TinyMice --%>
    <script src="../tinymce/js/tinymce/tinymce.min.js"></script>
    <script type="text/javascript">
        tinymce.init({
            selector: "textarea",
            theme: "modern",
            language: 'tr_TR',
            //Sayfa içerisinde birden fazla TinyMce editör kullanıcaksak elements ile id lerini tanımlamamız gerekiyor.
            //elements: "txticerik",
            height: "250",
            theme_modern_font_sizes: ["6px,7px,8px,9px,10px,11px,12px,13px,14px,15px,16px,17px,18px,19px,20px,21px,22px,23px,24px,25px,26px,27px,28px,29px,30px,31px,32px,36px,38px,40px"],
            font_size_style_values: ["6px,7px,8px,9px,10px,11px,12px,13px,14px,15px,16px,17px,18px,19px,20px,21px,22px,23px,24px,25px,26px,27px,28px,29px,30px,31px,32px,36px,38px,40px"],
            file_browser_callback: elFinderBrowser,
            plugins: [
                "advlist autolink lists link image charmap print preview hr anchor pagebreak",
                "searchreplace wordcount visualblocks visualchars code fullscreen",
                "insertdatetime media nonbreaking save table contextmenu directionality",
                "emoticons template paste textcolor"
            ],
            toolbar1: "fontselect, fontsizeselect, insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
            toolbar2: "print preview media | forecolor backcolor emoticons",
            image_advtab: true,
            templates: [
                { title: 'Test template 1', content: 'Test 1' },
                { title: 'Test template 2', content: 'Test 2' }
            ]
        });
        function elFinderBrowser(field_name, url, type, win) {
            tinymce.activeEditor.windowManager.open({
                file: '../elfinder/elfinder.html',// use an absolute path!
                title: 'elFinder 2.0',
                width: 900,
                height: 450,
                resizable: 'yes'
            }, {
                setUrl: function (url) {
                    win.document.getElementById(field_name).value = url;
                }
            });
            return false;
        }
</script>

<!---TinyMce Editör-->
    
     <script type="text/javascript">
         $(document).ready(function ()
             //var validFilesTypes = ["bmp", "gif", "png", "jpg",
             //   "jpeg", "doc", "docx", "xls", "xlsx",
             //   "htm", "html", "rar", "zip", "txt", "pdf"];
         {
             var validFilesTypes = ["rar", "zip", "pdf"];
             $('.s').change(function () {
                 CheckExtension(this);

                 validateFileSize(this);

             });
             function CheckExtension(e) {
                 /*global document: false */


                 var file = e;
                 var path = file.value;

                 var ext = path.substring(path.lastIndexOf(".") + 1, path.length).toLowerCase();
                 var isValidFile = false;
                 for (var i = 0; i < validFilesTypes.length; i++) {
                     if (ext == validFilesTypes[i]) {
                         isValidFile = true;
                         break;
                     }
                 }
                 if (!isValidFile) {
                     e.value = null;
                     alert("Invalid File. Unknown Extension Of Tender Doc" +
                     "Valid extensions are:\n\n" + validFilesTypes.join(", "));
                 }
                 return isValidFile;
             }

             function validateFileSize(e) {
                 /*global document: false */
                 var file = e;
                 var fileSize = file.files[0].size;
                 var isValidFile = false;
                 if (fileSize !== 0 && fileSize <= 25214400) {
                     isValidFile = true;
                 }
                 if (!isValidFile) {
                     e.value = null;
                     alert("File Size Should be Greater than 0 and less than 25 mb");
                 }
                 return isValidFile;
             }
         });

    </script>   
       
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class=" row show-grid">
        <div class="col-lg-12 list-group-item active" style="font-weight: bold; text-align: left;">
            Ürün Düzenleme Sayfası

        </div>
    </div>
    
      <asp:Panel ID="pnlUrunEditUrunUyari" runat="server">
         <div class="row show-grid">
        <div class="col-lg-12" style="background:#DD514C;height: 30px;padding: 4px;font-weight: bold;color:white;">
            <asp:Literal ID="ltrUrunEditEdit" runat="server"></asp:Literal>
        </div>
    </div>
    </asp:Panel>

    <div class=" row show-grid">
        <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
            Adı

        </div>
        <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
            <asp:TextBox ID="txtUrunEditUrunAdi" CssClass="form-control" runat="server"></asp:TextBox>
        </div>
        <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
            Sırası

        </div>
        <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
            <asp:TextBox ID="txtsirasi" runat="server" CssClass="form-control"></asp:TextBox>

        </div>
        
          <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
            Seo

        </div>
        <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
            <asp:TextBox ID="StxtSeo" runat="server" CssClass="form-control"></asp:TextBox>

        </div>
         &nbsp;&nbsp; <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="StxtSeo" ErrorMessage="Lütfen Seo Giriniz Adı ile Aynı olabilir!" ForeColor="Red"></asp:RequiredFieldValidator>
           <!--  <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
            Özel Seo

        </div> 
        <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">-->
            <asp:TextBox ID="StxtOzelSeo" Visible="False" runat="server" CssClass="form-control"></asp:TextBox>

       <!-- </div>-->
          <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
            Kategori Seç

        </div>
        <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
            <asp:DropDownList ID="ddlUrunEditKategoriDoldur" CssClass="form-control" runat="server"></asp:DropDownList>

        </div>
        
        
        <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
            Title

        </div>
        <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
            <asp:TextBox ID="txttittle" runat="server" CssClass="form-control"></asp:TextBox>

        </div>
        
        <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
            Anahtar Kelimeler

        </div>
        <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
            <asp:TextBox ID="txtkeywords" runat="server" CssClass="form-control"></asp:TextBox>

        </div>
        
        <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
            Site Açıklama

        </div>
        <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
            <asp:TextBox ID="txtdescription" runat="server" CssClass="form-control"></asp:TextBox>

        </div>

            <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
                <asp:Button ID="btnUrunEditUrunKapakResmiEkle" runat="server" CssClass="btn btn-primary btn-sm" OnClick="btnUrunEditUrunKapakResmiEkle_OnClick" Text="Kapak Resmi Ekle" />
        </div>
        
        
        <asp:Panel ID="pnlUrunEditUrunKapakResmi" runat="server">
                <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
            Kapak Resmi

        </div>
                <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
              <asp:Image ID="imgUrunEdit" runat="server" Width="150" Height="80" />
                    </div>
        <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
             <div class="btn btn-file">
                <span class="btn btn-primary btn-sm"><i class="fa fa-picture-o"></i>&nbsp;Kapak Resmi Ekle</span>

                <asp:FileUpload ID="fuUrunEditUrunKapakResmi"  runat="server" />
            </div>
            
            
             

        </div>
            
            
  

        </asp:Panel>
           </div>
        <div class=" row show-grid">
        <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
            Açıklama

        </div></div>
        <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
        <asp:TextBox ID="txticerik" runat="server" TextMode="MultiLine" CssClass="form-control"></asp:TextBox>
        </div>
    
           <div class=" row show-grid">
             <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
             <div class="btn btn-file">
                <span class="btn btn-primary btn-sm"><i class="fa fa-picture-o"></i>&nbsp;Dosya&nbsp;</span>
                 <asp:Label ID="lblDosya" runat="server" Text="Label"></asp:Label>
                 <br />
                <asp:FileUpload ID="fuDosya" CssClass="s"  runat="server" />
                <asp:HiddenField ID="hdnDosya" runat="server" />
            </div>
        </div></div>

     <div class=" row show-grid">
            <div class="col-lg-12 " style="font-weight: bold; text-align: left; border: 0;">
              <%--  <asp:Button ID="btnKaydet" runat="server" Text="Kaydet" OnClick="btnKaydet_OnClick" CssClass="btn btn-success" CausesValidation="False"/>--%>
                <button id="btnUrunEditUrunKaydet" OnServerClick="btnUrunEditUrunKaydet_OnServerClick"  class="btn btn-success" runat="server"><i class="fa fa-save"></i>&nbsp;Kaydet</button>
        </div>
    </div>


</asp:Content>


Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists