code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
<?php class Bizprofile_Models_Message extends Tomato_Model_Entity { protected $_properties = array( 'id' => null, 'fromuser_id' => null, 'fromuser_name' => null, 'fromenterprise_id' => null, 'fromenterprise_name' => null, 'title' => null, 'message' => null, 'touserarray' ...
135l
trunk/application/modules/bizprofile/models/Message.php
PHP
oos
430
<?php class Bizprofile_Models_MessageDetail extends Tomato_Model_Entity { protected $_properties = array( 'id' => null, 'messageid' => null, 'user_id' => null, 'enterprise_id' => null, 'messageread' => null, 'parentmessageid' => null ); }
135l
trunk/application/modules/bizprofile/models/MessageDetail.php
PHP
oos
281
<?php class Bizprofile_DashboardController extends Zend_Controller_Action { public function init() { } public function indexAction() { $auth = Zend_Auth::getInstance(); if ($auth->hasIdentity()) { $user = $auth->getIdentity(); if($user->enterprise){ $this->view->assign('enterprise', ...
135l
trunk/application/modules/bizprofile/controllers/DashboardController.php
PHP
oos
527
<?php class Bizprofile_AuthController extends Zend_Controller_Action { public function loginAction() { $request = $this->getRequest(); $auth = Zend_Auth::getInstance(); /** * Redirect to dashboard if user has logged in already */ if ($auth->hasIdentity()) { $this->_redirect($this->...
135l
trunk/application/modules/bizprofile/controllers/AuthController.php
PHP
oos
4,610
<?php class Bizprofile_UserController extends Zend_Controller_Action { protected $_general_info = array( 'contact_email' => 1, 'contact_tel' => 1, 'contact_fax' => 1, 'contact_address' => 1, ...
135l
trunk/application/modules/bizprofile/controllers/UserController.php
PHP
oos
26,976
<?php class Bizprofile_EnterpriseController extends Zend_Controller_Action { public function indexAction() { $request = $this->getRequest(); $enterprise_id = $request->getParam('enterprise_id'); $user_id = 0; $conn = Tomato_Db_Connection::factory()->getMasterConnection();...
135l
trunk/application/modules/bizprofile/controllers/EnterpriseController.php
PHP
oos
14,772
<?php class Bizprofile_MessageController extends Zend_Controller_Action { public function inboxAction() { $auth = Zend_Auth::getInstance(); if (!$auth->hasIdentity()) { $this->_redirect($this->view->serverUrl() . $this->view->url(array(), 'bizprofile_auth_login')); } ...
135l
trunk/application/modules/bizprofile/controllers/MessageController.php
PHP
oos
13,272
<?php class Bizprofile_PartnerController extends Zend_Controller_Action { public function indexAction() { $auth = Zend_Auth::getInstance(); $user = null; if ($auth->hasIdentity()) { $user = $auth->getIdentity(); $this->view->assign('user', $user); } ...
135l
trunk/application/modules/bizprofile/controllers/PartnerController.php
PHP
oos
10,583
<?php /** * TomatoCMS * * LICENSE * * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-2.0.txt * If you did not receiv...
135l
trunk/application/templates/bizprofile/views/page/scripts/page/details.phtml
HTML+PHP
oos
914
<?php /** * TomatoCMS * * LICENSE * * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-2.0.txt * If you did not receiv...
135l
trunk/application/templates/bizprofile/views/news/scripts/tag/article.phtml
HTML+PHP
oos
1,950
<?php /** * TomatoCMS * * LICENSE * * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-2.0.txt * If you did not recei...
135l
trunk/application/templates/bizprofile/views/news/scripts/article/details.phtml
HTML+PHP
oos
1,395
<?php /** * TomatoCMS * * LICENSE * * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-2.0.txt * If you did not recei...
135l
trunk/application/templates/bizprofile/views/news/scripts/article/category.phtml
HTML+PHP
oos
1,811
<?php /** * TomatoCMS * * LICENSE * * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-2.0.txt * If you did not recei...
135l
trunk/application/templates/bizprofile/views/news/scripts/article/search.phtml
HTML+PHP
oos
2,028
<?php /** * TomatoCMS * * LICENSE * * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-2.0.txt * If you did not recei...
135l
trunk/application/templates/bizprofile/views/multimedia/scripts/set/details.phtml
HTML+PHP
oos
1,750
<?php /** * TomatoCMS * * LICENSE * * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-2.0.txt * If you did not recei...
135l
trunk/application/templates/bizprofile/views/multimedia/scripts/tag/file.phtml
HTML+PHP
oos
1,743
<?php /** * TomatoCMS * * LICENSE * * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-2.0.txt * If you did not recei...
135l
trunk/application/templates/bizprofile/views/multimedia/scripts/tag/set.phtml
HTML+PHP
oos
1,732
<?php /** * TomatoCMS * * LICENSE * * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-2.0.txt * If you did not recei...
135l
trunk/application/templates/bizprofile/views/multimedia/scripts/file/details.phtml
HTML+PHP
oos
5,756
<?php /** * TomatoCMS * * LICENSE * * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-2.0.txt * If you did not recei...
135l
trunk/application/templates/bizprofile/layouts/_sampleHeaderWithAd.phtml
HTML+PHP
oos
1,571
<?php $auth = Zend_Auth::getInstance(); $logined = false; if ($auth->hasIdentity()) { $logined = true; } ?> <?php $skin_url = $this->APP_STATIC_SERVER . '/skins/'. $this->APP_TEMPLATE . '/'. $this->APP_SKIN; ?> <?php $this->addHelperPath(TOMATO_APP_DIR . DS . 'modules' . DS . 'shoppingcart' . DS . 'vi...
135l
trunk/application/templates/bizprofile/layouts/_header.phtml
HTML+PHP
oos
16,128
<div class="subcolumns footer_margin"> <div class="c25l left"> <a class="logo" href="#">Logo</a> </div> <div class="c50l"> <p>HN ASSOC. WSME - ADDRESS, TEL, FAX</p> </div> <div class="c25r right"> <p class="powerby">POWERED BY</p> </div> </div>
135l
trunk/application/templates/bizprofile/layouts/_footer.phtml
HTML+PHP
oos
306
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"<?php if ($this->APP_LANG_RTL) : ?> dir="rtl"<?php endif; ?>> <head> <meta http-equiv="Content-Type" content="text/html; char...
135l
trunk/application/templates/bizprofile/layouts/default.phtml
HTML+PHP
oos
4,824
<?php /** * This plugin stores the current URL in session */ class Tomato_Controller_Plugin_UrlTracker extends Zend_Controller_Plugin_Abstract { /** * Session key which is used to save the URL * @var const */ const SESSION_NS = 'Tomato_Controller_Plugin_UrlTracker'; /** * Store the exclu...
135l
trunk/libraries/Tomato/Controller/Plugin/UrlTracker.php
PHP
oos
1,312
<%@ Application Codebehind="Global.asax.cs" Inherits="_12_ChoTenMien.MvcApplication" Language="C#" %>
12-ahhmq-chotenmien
trunk/12_ChoTenMien/12_ChoTenMien/Global.asax
ASP.NET
asf20
106
body { font-size: .85em; font-family: "Trebuchet MS", Verdana, Helvetica, Sans-Serif; color: #232323; background-color: #fff; } header, footer, nav, section { display: block; } /* Styles for basic forms -----------------------------------------------------------*/ fieldset { ...
12-ahhmq-chotenmien
trunk/12_ChoTenMien/12_ChoTenMien/Content/Site.css
CSS
asf20
1,051
@{ Layout = "~/Views/Shared/_Layout.cshtml"; }
12-ahhmq-chotenmien
trunk/12_ChoTenMien/12_ChoTenMien/Views/_ViewStart.cshtml
HTML+Razor
asf20
55
@{ Layout = null; } <!DOCTYPE html> <html> <head> <title>Error</title> </head> <body> <h2> Sorry, an error occurred while processing your request. </h2> </body> </html>
12-ahhmq-chotenmien
trunk/12_ChoTenMien/12_ChoTenMien/Views/Shared/Error.cshtml
HTML+Razor
asf20
210
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>@ViewBag.Title</title> <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" /> <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/S...
12-ahhmq-chotenmien
trunk/12_ChoTenMien/12_ChoTenMien/Views/Shared/_Layout.cshtml
HTML+Razor
asf20
443
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace _12_ChoTenMien { // Note: For instructions on enabling IIS6 or IIS7 classic mode, // visit http://go.microsoft.com/?LinkId=9394801 public class MvcAp...
12-ahhmq-chotenmien
trunk/12_ChoTenMien/12_ChoTenMien/Global.asax.cs
C#
asf20
1,191
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
12-ahhmq-chotenmien
trunk/12_ChoTenMien/12_ChoTenMien/Properties/AssemblyInfo.cs
C#
asf20
1,399
<%@ Application Language="C#" %> <script runat="server"> void Application_Start(object sender, EventArgs e) { // Code that runs on application startup } void Application_End(object sender, EventArgs e) { // Code that runs on application shutdown } ...
12-ahhmq-chotenmien
trunk/Global.asax
ASP.NET
asf20
951
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Data.SqlClient; using System.Configuration; using System.Security.Cryptography; public partial class Template : System.Web.UI.MasterPa...
12-ahhmq-chotenmien
trunk/Template.master.cs
C#
asf20
1,397
/*============================*/ /*=== Custom Slider Styles ===*/ /*============================*/ #slider { /*kich thuoc khung hinh*/ margin-top: 0px; margin-left: 10px; margin-right:20px; position:relative; border: 8px solid #f2eedd; border-top-left-radius: 5px; border-top-righ...
12-ahhmq-chotenmien
trunk/style/nivostyle.css
CSS
asf20
1,392
.ui-state-disabled { cursor: default !important; } .wapper{ /*phan div bao ngoai*/ font: 66% "Trebuchet MS", sans-serif; margin-left: 1px; box-shadow: 0px 3px 3px #ababab; } .ui-icon { /*phan thang*/ display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }...
12-ahhmq-chotenmien
trunk/style/jquerycalendar.css
CSS
asf20
6,262
/* * jQuery Nivo Slider v2.3 * http://nivo.dev7studios.com * * Copyright 2010, Gilbert Pellegrom * Free to use and abuse under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * March 2010 */ /* The Nivo Slider styles */ .nivoSlider { position:relative; } .nivoSlide...
12-ahhmq-chotenmien
trunk/style/nivoslider.css
CSS
asf20
1,580
html,body,div,span,h1,h2,h3,strong,ol,ul,li { padding:0; margin:0; border:0; outline:0; vertical-align:baseline; } body{ font-size:100%; line-height:1; } ol,ul { list-style:none; } a {text-decoration: none; color: blue;} a:hover{color: red;} hr { co...
12-ahhmq-chotenmien
trunk/style/Mystyle.css
CSS
asf20
8,460
/* DEFAULTS ----------------------------------------------------------*/ body { background: #b6b7bc; font-size: .80em; font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif; margin: 0px; padding: 0px; color: #696969; } a:link, a:visi...
12-ahhmq-chotenmien
trunk/style/Site.css
CSS
asf20
4,258
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } }
12-ahhmq-chotenmien
trunk/Default.aspx.cs
C#
asf20
280
<%@ Page Title="" Language="C#" MasterPageFile="~/Template.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <asp:Content ID="Content1" ContentPlaceHolderID="Header" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> ...
12-ahhmq-chotenmien
trunk/Default.aspx
ASP.NET
asf20
444
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/BUS/Properties/AssemblyInfo.cs
C#
asf20
1,418
using System; using System.Collections.Generic; using System.Linq; using System.Text; using DAO; using System.Data; namespace BUS { public class TenMienBUS { TenMienDAO tmDao = new TenMienDAO(); public DataTable dsTenmien() { return tmDao.danhSachTenMien(); ...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/BUS/TenMienBUS.cs
C#
asf20
342
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Configuration; using System.Data; using System.Data.SqlClient; namespace DAO { public class TenMienDAO { static string strConnect = ConfigurationManager.ConnectionStrings["ApplicationServices...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/DAO/TenMienDAO.cs
C#
asf20
738
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/DAO/Properties/AssemblyInfo.cs
C#
asf20
1,418
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DTO { public class TenMienDTO { private string _MaTenMien; private string _Ten; private string _NghiaTiengViet; private decimal _Gia; private string _TenMienDep;...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/DTO/TenMienDTO.cs
C#
asf20
1,061
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/DTO/Properties/AssemblyInfo.cs
C#
asf20
1,418
<%@ Application Codebehind="Global.asax.cs" Inherits="ChoTenMien.Global" Language="C#" %>
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/ChoTenMien/Global.asax
ASP.NET
asf20
94
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Net.Mail; namespace ChoTenMien.Page { public partial class LienHe : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/ChoTenMien/Page/LienHe.aspx.cs
C#
asf20
2,743
<%@ Page Title="" Language="C#" MasterPageFile="~/Template.Master" AutoEventWireup="true" CodeBehind="LienHe.aspx.cs" Inherits="ChoTenMien.Page.LienHe" %> <asp:Content ID="Content1" ContentPlaceHolderID="Header" runat="server"> <%@ Register assembly="FreeTextBox" namespace="FreeTextBoxControls" tagprefix="FTB" %...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/ChoTenMien/Page/LienHe.aspx
ASP.NET
asf20
6,213
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using BUS; namespace ChoTenMien.Page { public partial class TrangChu : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) ...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/ChoTenMien/Page/TrangChu.aspx.cs
C#
asf20
489
<%@ Page Title="" Language="C#" MasterPageFile="~/Template.Master" AutoEventWireup="true" CodeBehind="GioiThieu.aspx.cs" Inherits="ChoTenMien.Page.GioiThieu" %> <asp:Content ID="Content1" ContentPlaceHolderID="Header" runat="server"> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="NoiDungChinh" ...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/ChoTenMien/Page/GioiThieu.aspx
ASP.NET
asf20
7,863
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace ChoTenMien.Page { public partial class GioiThieu : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { ...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/ChoTenMien/Page/GioiThieu.aspx.cs
C#
asf20
338
<%@ Page Title="" Language="C#" MasterPageFile="~/Template.Master" AutoEventWireup="true" CodeBehind="TrangChu.aspx.cs" Inherits="ChoTenMien.Page.TrangChu" %> <asp:Content ID="Content1" ContentPlaceHolderID="Header" runat="server"> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="NoiDungChinh" runa...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/ChoTenMien/Page/TrangChu.aspx
ASP.NET
asf20
1,219
/*============================*/ /*=== Custom Slider Styles ===*/ /*============================*/ #slider { /*kich thuoc khung hinh*/ margin-top: 0px; margin-left: 10px; margin-right:20px; position:relative; border: 8px solid #f2eedd; border-top-left-radius: 5px; border-top-righ...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/ChoTenMien/style/nivostyle.css
CSS
asf20
1,392
.ui-state-disabled { cursor: default !important; } .wapper{ /*phan div bao ngoai*/ font: 66% "Trebuchet MS", sans-serif; margin-left: 1px; box-shadow: 0px 3px 3px #ababab; } .ui-icon { /*phan thang*/ display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/ChoTenMien/style/jquerycalendar.css
CSS
asf20
6,262
/* * jQuery Nivo Slider v2.3 * http://nivo.dev7studios.com * * Copyright 2010, Gilbert Pellegrom * Free to use and abuse under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * March 2010 */ /* The Nivo Slider styles */ .nivoSlider { position:relative; } .nivoSlide...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/ChoTenMien/style/nivoslider.css
CSS
asf20
1,580
html,body,div,span,h1,h2,h3,strong,ol,ul,li { border-style: none; border-color: inherit; border-width: 0; padding: 0; margin: 0; outline: 0; vertical-align:baseline; color: #000000; } body{ font-size:100%; line-height:1; } ol,ul { list-style:none; }...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/ChoTenMien/style/Mystyle.css
CSS
asf20
8,577
/* DEFAULTS ----------------------------------------------------------*/ body { background: #b6b7bc; font-size: .80em; font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif; margin: 0px; padding: 0px; color: #696969; } a:link, a:visi...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/ChoTenMien/style/Site.css
CSS
asf20
4,258
<%@ Page Title="" Language="C#" MasterPageFile="~/Template.Master" AutoEventWireup="true" CodeBehind="QuanLyNhanVien.aspx.cs" Inherits="ChoTenMien.Admin.QuanLyNhanVien" %> <asp:Content ID="Content1" ContentPlaceHolderID="Header" runat="server"> <style type="text/css"> .style6 { col...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/ChoTenMien/admin/QuanLyNhanVien.aspx
ASP.NET
asf20
15,068
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using BUS; namespace ChoTenMien.Admin { public partial class QuanLyNhanVien : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e)...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/ChoTenMien/admin/QuanLyNhanVien.aspx.cs
C#
asf20
366
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace ChoTenMien.Admin { public partial class QuanLyThamSo : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { ...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/ChoTenMien/admin/QuanLyThamSo.aspx.cs
C#
asf20
342
<%@ Page Title="" Language="C#" MasterPageFile="~/Template.Master" AutoEventWireup="true" CodeBehind="QuanLyThamSo.aspx.cs" Inherits="ChoTenMien.Admin.QuanLyThamSo" %> <asp:Content ID="Content1" ContentPlaceHolderID="Header" runat="server"> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="NoiDungChin...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/ChoTenMien/admin/QuanLyThamSo.aspx
ASP.NET
asf20
358
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Security; using System.Web.SessionState; namespace ChoTenMien { public class Global : System.Web.HttpApplication { void Application_Start(object sender, EventArgs e) { ...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/ChoTenMien/Global.asax.cs
C#
asf20
1,193
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace ChoTenMien { public partial class Template : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { ...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/ChoTenMien/Template.Master.cs
C#
asf20
338
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
12-ahhmq-chotenmien
trunk/PhienBanMoi 3.0/ChoTenMien/ChoTenMien/Properties/AssemblyInfo.cs
C#
asf20
1,391
function preds = predict(bnet, evidence, question) engine = jtree_inf_engine(bnet); engine=enter_evidence(engine,evidence); marg = marginal_nodes(engine, bnet.names(question)); preds=marg.T; end
12l-msi-baynets
trunk/src/predict.m
M
gpl3
225
function getProbabilities(bnet) source1={'FATIGUE', 'ATTENTION_DISORDER'}; source2={'COUGHING', 'SMOKING'}; target={'CANCER','CAR_ACCIDENT'}; for(n=1:2) for(i=1:2) for(j=1:2) pres1=''; pres2=''; if(i==1) ...
12l-msi-baynets
trunk/src/getProbabilities.m
MATLAB
gpl3
967
function [newDag newData newNames newNodeSizes] = fixTopology(dag, data, names, node_sizes) %scan the connections conn=[]; for ( i = 1:size(dag, 1)) for ( j = 1:size(dag, 2)) if(dag(i,j)==1) if(isempty(conn)) conn=[names(i),names(j)]; ...
12l-msi-baynets
trunk/src/fixTopology.m
MATLAB
gpl3
785
%adjacency matrix for graph representation N = 12; names = {'SMOKING', 'YELLOW_FINGERS', 'ANXIETY', 'PEER_PRESSURE', ... 'GENETICS', 'ATTENTION_DISORDER', 'BORN_ON_EVEN_DAY', ... 'CAR_ACCIDENT', 'FATIGUE', 'ALLERGY', 'COUGHING', 'CANCER'}; dag = zeros(N,N); SMOKING = 1; YELLOW_FIN...
12l-msi-baynets
trunk/src/lung_cancer.m
MATLAB
gpl3
1,716
function result = testBayNet(bnet, data, nsamples) N=size(bnet.dag,1); samples = cell(N, nsamples); for i=1:nsamples samples(:,i) = sample_bnet(bnet); end testdata = cell2num(samples); % Make a tabula rasa bnet2 = mk_bnet(bnet.dag, bnet.node_sizes); seed = 0; rand...
12l-msi-baynets
trunk/src/testBayNet.m
MATLAB
gpl3
814
function [bnet trainData] = getNet(dataset, detectStruct, depletedRowsRatio, depletedColsRatio) %some general stuff bnet=nan; dag=nan; trainData=nan; names=nan; node_sizes=nan; N=0; if (dataset=='cancer') display('cancer'); N = 12; names = {'SMOKING', '...
12l-msi-baynets
trunk/src/getNet.m
MATLAB
gpl3
3,246
%adjacency matrix for graph representation N = 4; dag = zeros(N,N); C = 1; S = 2; R = 3; W = 4; dag(C,[R S]) = 1; dag(R,W) = 1; dag(S,W)=1; %define a vector of node sizes (all nodes discrete and binary) discrete_nodes= 1:N; node_sizes=[]; %observed nodes? here: observed_nodes=[]; %make the bayesian n...
12l-msi-baynets
trunk/src/warmup.m
MATLAB
gpl3
1,264
\documentclass{article} \usepackage{polski} \usepackage[utf8]{inputenc} \usepackage{listings} \usepackage{graphicx} \usepackage{float} \usepackage{tabularx} \usepackage[usenames,dvipsnames]{color} % For colors and names \usepackage{multirow} \usepackage{amsmath} \hyphenpenalty=1115000 \newcommand{\specialcell}[2][c]{%...
12l-msi-baynets
trunk/doc/report-MSI-bayes.tex
TeX
gpl3
14,408
\relax \@writefile{toc}{\contentsline {section}{\numberline {1}Tre\IeC {\'s}\IeC {\'c} zadania}{1}} \@writefile{toc}{\contentsline {section}{\numberline {2}Analiza problemu}{1}} \@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces Statystyka warto\IeC {\'s}ci zmiennej docelowej \textit {cancer$\{-...
12l-msi-baynets
trunk/doc/report-MSI-bayes.aux
TeX
gpl3
1,884
""" Data format classes ("responders") that can be plugged into model_resource.ModelResource and determine how the objects of a ModelResource instance are rendered (e.g. serialized to XML, rendered by templates, ...). """ from django.core import serializers from django.core.handlers.wsgi import STATUS_CODE_TEXT from d...
1262407491-litao
django_restapi/responder.py
Python
bsd
12,144
""" Generic resource class. """ from django.utils.translation import ugettext as _ from authentication import NoAuthentication from django.core.urlresolvers import reverse as _reverse from django.http import Http404, HttpResponse, HttpResponseNotAllowed def load_put_and_files(request): """ Populates request.PU...
1262407491-litao
django_restapi/resource.py
Python
bsd
4,903
""" Data format classes that can be plugged into model_resource.ModelResource and determine how submissions of model data need to look like (e.g. form submission MIME types, XML, JSON, ...). """ from django.core import serializers from django.forms import model_to_dict class InvalidFormData(Exception): """ Ra...
1262407491-litao
django_restapi/receiver.py
Python
bsd
2,091
""" Model-bound resource class. """ from django import forms from django.conf.urls.defaults import patterns from django.http import * from django.forms import ModelForm, models from django.forms.util import ErrorDict from django.utils.functional import curry from django.utils.translation.trans_null import _ from resour...
1262407491-litao
django_restapi/model_resource.py
Python
bsd
9,214
VERSION = (1, 1)
1262407491-litao
django_restapi/__init__.py
Python
bsd
17
from django.http import HttpResponse from django.utils.translation import ugettext as _ import hashlib, time, random def djangouser_auth(username, password): """ Check username and password against django.contrib.auth.models.User """ from django.contrib.auth.models import User try: user...
1262407491-litao
django_restapi/authentication.py
Python
bsd
7,483
from distutils.core import setup version = '%s.%s' % __import__('django_restapi').VERSION[:2] setup(name='django-rest', version=version, packages=['django_restapi'], author='Andriy Drozdyuk', author_email='drozzy@gmail.com', )
1262407491-litao
setup.py
Python
bsd
238
from os.path import realpath DEBUG = True TEMPLATE_DEBUG = True INSTALLED_APPS = ( 'django.contrib.contenttypes', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.sessions', 'django.contrib.sites', 'django_restapi_tests.polls', 'django_restapi_tests.people' ) SITE_ID=1 ROOT_U...
1262407491-litao
django_restapi_tests/settings.py
Python
bsd
696
#!/usr/bin/env python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to ...
1262407491-litao
django_restapi_tests/.svn/text-base/manage.py.svn-base
Python
bsd
546
from datetime import datetime from django.db import models from django.utils.translation import gettext_lazy as _ class Poll(models.Model): question = models.CharField(max_length=200) password = models.CharField(max_length=200) pub_date = models.DateTimeField(_('date published'), default=datetime.now) ...
1262407491-litao
django_restapi_tests/polls/models.py
Python
bsd
1,052
from binascii import b2a_base64 from datetime import datetime from django.core import serializers from django.test import TestCase from django.utils.functional import curry from django_restapi.authentication import HttpDigestAuthentication from django_restapi_tests.examples.authentication import digest_authfunc from dj...
1262407491-litao
django_restapi_tests/polls/tests.py
Python
bsd
13,573
from django.conf.urls.defaults import * from django.contrib import admin urlpatterns = patterns('', url(r'', include('django_restapi_tests.examples.simple')), url(r'', include('django_restapi_tests.examples.basic')), url(r'', include('django_restapi_tests.examples.template')), url(r'', include('django_rest...
1262407491-litao
django_restapi_tests/urls.py
Python
bsd
674
from django.conf.urls.defaults import * from django_restapi.model_resource import Collection from django_restapi.responder import * from django_restapi.receiver import * from django_restapi_tests.polls.models import Poll fullxml_poll_resource = Collection( queryset = Poll.objects.all(), permitted_methods = ('...
1262407491-litao
django_restapi_tests/examples/submission.py
Python
bsd
760
from django.conf.urls.defaults import * from django_restapi.model_resource import Collection from django_restapi.responder import * from django_restapi_tests.polls.models import Poll, Choice xml_poll_resource = Collection( queryset = Poll.objects.all(), permitted_methods = ('GET', 'POST', 'PUT', 'DELETE'), ...
1262407491-litao
django_restapi_tests/examples/basic.py
Python
bsd
757
from django.conf.urls.defaults import * from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django_restapi.resource import Resource from django_restapi_tests.people.models import * # Urls for a resource that does not map 1:1 # to Django models. class FriendshipCollection...
1262407491-litao
django_restapi_tests/examples/generic_resource.py
Python
bsd
1,184
from django.conf.urls.defaults import * from django_restapi.model_resource import Collection, Entry, reverse from django_restapi.responder import * from django_restapi_tests.polls.models import Poll, Choice # JSON Test API URLs # # Polls are available at /json/polls/ and # /json/polls/[poll_id]/. # # Different (manua...
1262407491-litao
django_restapi_tests/examples/custom_urls.py
Python
bsd
2,058
from django.conf.urls.defaults import * from django_restapi.model_resource import Collection from django_restapi.responder import * from django_restapi_tests.polls.models import Poll, Choice template_poll_resource = Collection( queryset = Poll.objects.all(), permitted_methods = ('GET', 'POST', 'PUT', 'DELETE')...
1262407491-litao
django_restapi_tests/examples/template.py
Python
bsd
1,141
from django.conf.urls.defaults import * from django_restapi.model_resource import Collection from django_restapi.responder import * from django_restapi_tests.polls.models import Poll, Choice simple_poll_resource = Collection( queryset = Poll.objects.all(), responder = XMLResponder(), ) simple_choice_resource ...
1262407491-litao
django_restapi_tests/examples/simple.py
Python
bsd
543
from django.conf.urls.defaults import * from django_restapi.model_resource import Collection from django_restapi.responder import * from django_restapi_tests.polls.models import Poll, Choice fixedend_poll_resource = Collection( queryset = Poll.objects.all(), responder = XMLResponder(), ) fixedend_choice_resou...
1262407491-litao
django_restapi_tests/examples/fixedend_urls.py
Python
bsd
651
from django.conf.urls.defaults import * from django_restapi.model_resource import Collection from django_restapi.responder import * from django_restapi.authentication import * from django_restapi_tests.polls.models import Poll # HTTP Basic # # No auth function specified # -> django.contrib.auth.models.User is used. # ...
1262407491-litao
django_restapi_tests/examples/authentication.py
Python
bsd
1,320
{% extends "error.html" %} {% block title %}500 Internal Server Error{% endblock %} {% block headline %}500 Internal Server Error{% endblock %} {% block content %}{{ debug }}{% endblock %}
1262407491-litao
django_restapi_tests/templates/500.html
HTML
bsd
188
<html> <head> <title>{% block title %}{% endblock %}</title> </head> <body> <h1>{% block headline %}{% endblock %}</h1> {% block content %}{% endblock %} </body> </html>
1262407491-litao
django_restapi_tests/templates/error.html
HTML
bsd
179
<html> <head> <title>Poll: {{ poll.question }}</title> </head> <body> <h1>Poll: {{ poll.question }}</h1> <p>Date: {{ poll.pub_date|date:"r" }}</p> <p>Password: {{ poll.password }} (should not be visible)</p> <p>Choices:</p> <ol> {% for choice in poll.choice_set.all %} <li><a href="../../choices/{...
1262407491-litao
django_restapi_tests/templates/polls/poll_detail.html
HTML
bsd
619
{% extends "error.html" %} {% block title %}400 Bad Request{% endblock %} {% block headline %}400 Bad Request{% endblock %} {% block content %}{{ errors }}{% endblock %}
1262407491-litao
django_restapi_tests/templates/polls/400.html
HTML
bsd
169
<html> <head> <title>Choice: {{ choice.choice }}</title> </head> <body> <h1>Choice: {{ choice.choice }}</h1> <p>Belongs to poll: <a href="../../polls/{{ choice.poll.id }}/">{{ choice.poll }}</a></p> <p>Votes: {{ choice.votes }}</p> </body> </html>
1262407491-litao
django_restapi_tests/templates/polls/choice_detail.html
HTML
bsd
264
<html> <head> <title> {% if update %} Poll: {{ poll.question }} {% else %} New Poll {% endif %} </title> </head> <body> {% if update %} <form method="PUT" action="../{{ poll.id }}/"> {% else %} <form method="POST" action="../"> {% endif %} {% if update %} <h1>Poll: {{...
1262407491-litao
django_restapi_tests/templates/polls/poll_form.html
HTML
bsd
513
{% extends "error.html" %} {% block title %}405 Method Not Allowed{% endblock %} {% block headline %}405 Method Not Allowed{% endblock %}
1262407491-litao
django_restapi_tests/templates/polls/405.html
HTML
bsd
137
<html> <head> <title>Choice List</title> </head> <body> <h1>Choice List</h1> <ol> {% for choice in choice_list %} <li><a href="{{ choice.id }}/">{{ choice }}</a></li> {% endfor %} </ol> </body> </html>
1262407491-litao
django_restapi_tests/templates/polls/choice_list.html
HTML
bsd
225