<%@ Page Title="" Language="VB" MasterPageFile="~/admin/admin.master" AutoEventWireup="false" CodeFile="Files.aspx.vb" Inherits="admin_Files" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

<script>
function openB(a, b, c) {try {document.getElementById(a).style.display = b;document.getElementById('ContentPlaceHolder1_selectedimg').value = c;} catch (err) { }};
function setimg(a) {
var e = document.getElementById('ContentPlaceHolder1_DropDownList1')
var myfld = e.options[e.selectedIndex].value;

document.getElementById('ContentPlaceHolder1_img').src = "/img/" + myfld + "/" + a;
document.getElementById('ContentPlaceHolder1_imgname').value = a;
document.getElementById('ContentPlaceHolder1_imgname2').value = a;

//openB('glry', 'none', 0);

}
function clc(a, b) { document.getElementById('ContentPlaceHolder1_btp').value = b; var button = document.getElementById(a); button.click(); }
</script>
<style>
#glry{position:fixed;top:60px;left:20%;width:60%;border:2px solid gray;height:80vh;
display:none;z-index:100;background-color:white;}
.imgslc{width:100px;}
</style>


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">






<asp:HiddenField ID="btp" runat="server" />

<!-- Content Header (Page header) -->
<section class="content-header">


داشبرد
<small>کنترل پنل</small>


<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> خانه</a></li>
<li class="active">مدیریت فایل ها</li>
</ol>
</section>

<!-- Main content -->
<section class="content">

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

<asp:Panel ID="Panel1" runat="server">

<asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>

<div class="row">
<%--بخش آیتم های اصلی--%>
<div class="col-md-8">
<div class="box box-default"><div class="box-header with-border"><h3 class="box-title">مدیریت فایل های :

<asp:DropDownList ID="DropDownList1" AutoPostBack="true" runat="server">
<asp:ListItem Text="مقالات" Value="art"></asp:ListItem>
<asp:ListItem Text="افراد" Value="prf"></asp:ListItem>
<asp:ListItem Text="پیشخوان" Value="pish"></asp:ListItem>
</asp:DropDownList>

<div class="box-tools pull-right"><button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button></div></div><div class="box-body">
<div class="row"><div class="col-md-12">

<asp:Literal ID="frm" runat="server"></asp:Literal>



</div></div>
</div></div></div>

<%--بخش آیتم های جانبی--%>
<div class="col-md-4">

<div class="box box-default"><div class="box-header with-border"><h3 class="box-title">تصویر انتخاب شده <div class="box-tools pull-right"><button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button></div></div><div class="box-body">
<div class="row"><div class="col-md-12">

<asp:Image ID="img" Width="100%" runat="server" />
<br /><br />
<asp:HiddenField ID="imgname" runat="server"></asp:HiddenField>
<div class="form-group"><label> نام فایل </label>
<asp:TextBox ID="imgname2" runat="server" style="text-align:center;direction:ltr;"></asp:TextBox>
<br /><br />
<asp:Button ID="idel" runat="server" class="btn btn-danger btn-flat" Text="حذف" />
<asp:Button ID="iedit" runat="server" class="btn btn-success btn-flat" Text="ویرایش نام" />

</div></div></div>
</div>
</div>
</div>

</ContentTemplate></asp:UpdatePanel>






</asp:Panel>


</section>
<asp:UpdateProgress ID="UpdateProgress1" runat="server"><ProgressTemplate>در حال پردازش</ProgressTemplate></asp:UpdateProgress>









</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>