Mini Kabibi Habibi
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="indexContent" ContentPlaceHolderID="ContentHolder" runat="server">
<% FileManagerFeaturesDemoOptions options = (FileManagerFeaturesDemoOptions)Session["Options"]; %>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function() {
var foldersVisible = '<%= options.SettingsFolders.Visible.ToString().ToLower()%>';
if(!foldersVisible) {
$("#SettingsEditing_AllowMove").attr("disabled", "disabled");
$("#SettingsEditing_AllowCreate").attr("disabled", "disabled");
}
});
// ]]>
</script>
<% Html.BeginForm(); %>
<div style="height: 150px; margin-bottom: 35px;">
<div class="vertOptionsPanel">
<div class="BottomMargin"><b>Editing Settings:</b></div>
<div>
<%= Html.CheckBox("SettingsEditing.AllowMove", options.SettingsEditing.AllowMove, new { @class = "leftMost" }) %>
<label class="checkBox" for="SettingsEditing_AllowMove">AllowMove</label>
</div>
<div>
<%= Html.CheckBox("SettingsEditing.AllowDelete", options.SettingsEditing.AllowDelete, new { @class = "leftMost" }) %>
<label class="checkBox" for="SettingsEditing_AllowDelete">AllowDelete</label>
</div>
<div>
<%= Html.CheckBox("SettingsEditing.AllowRename", options.SettingsEditing.AllowRename, new { @class = "leftMost" }) %>
<label class="checkBox" for="SettingsEditing_AllowRename">AllowRename</label>
</div>
<div>
<%= Html.CheckBox("SettingsEditing.AllowCreate", options.SettingsEditing.AllowCreate, new { @class = "leftMost"}) %>
<label class="checkBox" for="SettingsEditing_AllowCreate">AllowCreate</label>
</div>
<input type="submit" value="Apply" />
</div>
<div class="vertOptionsPanel">
<div class="BottomMargin"><b>Toolbar Settings:</b></div>
<div>
<%= Html.CheckBox("SettingsToolbar.ShowPath", options.SettingsToolbar.ShowPath, new { @class = "leftMost" }) %>
<label class="checkBox" for="SettingsToolbar_ShowPath">ShowPath</label>
</div>
<div>
<%= Html.CheckBox("SettingsToolbar.ShowRefreshButton", options.SettingsToolbar.ShowRefreshButton, new { @class = "leftMost" }) %>
<label class="checkBox" for="SettingsToolbar_ShowRefreshButton">ShowRefreshButton</label>
</div>
<div>
<%= Html.CheckBox("SettingsToolbar.ShowFilterBox", options.SettingsToolbar.ShowFilterBox, new { @class = "leftMost" }) %>
<label class="checkBox" for="SettingsToolbar_ShowFilterBox">ShowFilterBox</label>
</div>
<div>
<%= Html.CheckBox("SettingsToolbar.ShowDownloadButton", options.SettingsToolbar.ShowDownloadButton, new { @class = "leftMost" }) %>
<label class="checkBox" for="SettingsToolbar_ShowDownloadButton">ShowDownloadButton</label>
</div>
</div>
<div class="vertOptionsPanel">
<div class="BottomMargin"><b>Folder Settings:</b></div>
<div>
<%= Html.CheckBox("SettingsFolders.Visible", options.SettingsFolders.Visible, new { @class = "leftMost" }) %>
<label class="checkBox" for="SettingsFolders_Visible">Visible</label>
</div>
<div>
<%= Html.CheckBox("SettingsFolders.EnableCallBacks", options.SettingsFolders.EnableCallBacks, new { @class = "leftMost" }) %>
<label class="checkBox" for="SettingsFolders_EnableCallBacks">EnableCallBacks</label>
</div>
<div>
<%= Html.CheckBox("SettingsFolders.ShowFolderIcons", options.SettingsFolders.ShowFolderIcons, new { @class = "leftMost" }) %>
<label class="checkBox" for="SettingsFolders_ShowFolderIcons">ShowFolderIcons</label>
</div>
<div>
<%= Html.CheckBox("SettingsFolders.ShowLockedFolderIcons", options.SettingsFolders.ShowLockedFolderIcons, new { @class = "leftMost" }) %>
<label class="checkBox" for="SettingsFolders_ShowLockedFolderIcons">ShowLockedFolderIcons</label>
</div>
</div>
<div class="vertOptionsPanel">
<div class="BottomMargin"><b>Upload Settings:</b></div>
<div>
<%= Html.CheckBox("SettingsUpload.Enabled", options.SettingsUpload.Enabled, new { @class = "leftMost" }) %>
<label class="checkBox" for="SettingsUpload_Enabled">Enabled</label>
</div>
<div>
<%= Html.CheckBox("SettingsUpload.AdvancedModeSettings.EnableMultiSelect", options.SettingsUpload.AdvancedModeSettings.EnableMultiSelect, new { @class = "leftMost" }) %>
<label class="checkBox" for="SettingsUpload_AdvancedModeSettings_EnableMultiSelect">EnableMultiSelect</label>
</div>
</div>
</div>
<div class="Clear"></div>
<% Html.RenderPartial("FeaturesPartial", Model); %>
<br />
<p class="Note">
<b>Allowed Extensions</b>: .jpg, .jpeg, .gif, .rtf, .txt, .avi, .png, .mp3, .xml, .doc, .pdf
</p>
<% Html.EndForm(); %>
</asp:Content>