code
string
repo_name
string
path
string
language
string
license
string
size
int64
package com.ch_linghu.fanfoudroid.ui.module; import android.widget.ListAdapter; public interface TweetAdapter extends ListAdapter { void refresh(); }
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/ui/module/TweetAdapter.java
Java
asf20
153
package com.ch_linghu.fanfoudroid; import java.text.MessageFormat; import java.util.List; import android.content.Intent; import android.os.Bundle; import com.ch_linghu.fanfoudroid.fanfou.Paging; import com.ch_linghu.fanfoudroid.http.HttpException; import com.ch_linghu.fanfoudroid.ui.base.UserArrayBaseActivity; impor...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/FollowersActivity.java
Java
asf20
2,322
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/MentionActivity.java
Java
asf20
3,471
package com.ch_linghu.fanfoudroid.http; /** * HTTP StatusCode is not 200 */ public class HttpException extends Exception { private int statusCode = -1; public HttpException(String msg) { super(msg); } public HttpException(Exception cause) { super(cause); } public HttpException(String msg, int statusCode...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/http/HttpException.java
Java
asf20
640
package com.ch_linghu.fanfoudroid.http; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.net.URI; import java.net.URISyntaxException; import java.net.URLEncoder; import java.util.ArrayList; import java.util.zip.GZIPInputStream; impor...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/http/HttpClient.java
Java
asf20
24,743
package com.ch_linghu.fanfoudroid.http; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/http/Response.java
Java
asf20
5,123
package com.ch_linghu.fanfoudroid.http; import java.util.HashMap; import java.util.Map; public class HTMLEntity { public static String escape(String original) { StringBuffer buf = new StringBuffer(original); escape(buf); return buf.toString(); } public static void escape(StringBuffer original) { int index...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/http/HTMLEntity.java
Java
asf20
23,227
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/LoginActivity.java
Java
asf20
10,605
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/FavoritesActivity.java
Java
asf20
4,647
package com.ch_linghu.fanfoudroid; import java.util.ArrayList; import java.util.List; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.ListView; import android.widget.ProgressBar; import com.ch_linghu.fanfoudroid.data.Tweet; ...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/UserTimelineActivity.java
Java
asf20
11,270
package com.ch_linghu.fanfoudroid; import java.util.ArrayList; import java.util.List; import android.database.Cursor; import android.os.Bundle; import com.ch_linghu.fanfoudroid.data.Tweet; import com.ch_linghu.fanfoudroid.db.StatusTable; import com.ch_linghu.fanfoudroid.fanfou.Status; import com.ch_linghu.fanfoudroi...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/BrowseActivity.java
Java
asf20
2,120
package com.ch_linghu.fanfoudroid.task; import android.app.ProgressDialog; import android.content.Context; import android.util.Log; import android.widget.Toast; import com.ch_linghu.fanfoudroid.ui.base.WithHeaderActivity; public abstract class TaskFeedback { private static TaskFeedback _instance = null; public st...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/task/TaskFeedback.java
Java
asf20
3,972
package com.ch_linghu.fanfoudroid.task; import java.util.HashMap; import org.json.JSONException; import com.ch_linghu.fanfoudroid.http.HttpException; /** * 暂未使用,待观察是否今后需要此类 * * @author lds * */ public class TaskParams { private HashMap<String, Object> params = null; public TaskParams() { params = new H...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/task/TaskParams.java
Java
asf20
3,044
package com.ch_linghu.fanfoudroid.task; import android.util.Log; import com.ch_linghu.fanfoudroid.TwitterApplication; import com.ch_linghu.fanfoudroid.data.Tweet; import com.ch_linghu.fanfoudroid.db.StatusTable; import com.ch_linghu.fanfoudroid.http.HttpException; import com.ch_linghu.fanfoudroid.ui.base.BaseActivity...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/task/TweetCommonTask.java
Java
asf20
2,875
package com.ch_linghu.fanfoudroid.task; public interface TaskListener { String getName(); void onPreExecute(GenericTask task); void onPostExecute(GenericTask task, TaskResult result); void onProgressUpdate(GenericTask task, Object param); void onCancelled(GenericTask task); }
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/task/TaskListener.java
Java
asf20
287
package com.ch_linghu.fanfoudroid.task; import java.util.Observable; import java.util.Observer; import android.util.Log; public class TaskManager extends Observable { private static final String TAG = "TaskManager"; public static final Integer CANCEL_ALL = 1; public void cancelAll() { Log.d(TAG, "All task Can...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/task/TaskManager.java
Java
asf20
451
package com.ch_linghu.fanfoudroid.task; import java.util.Observable; import java.util.Observer; import android.os.AsyncTask; import android.util.Log; import android.widget.Toast; import com.ch_linghu.fanfoudroid.TwitterApplication; import com.ch_linghu.fanfoudroid.ui.module.Feedback; public abstract class GenericTa...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/task/GenericTask.java
Java
asf20
2,559
package com.ch_linghu.fanfoudroid.task; public abstract class TaskAdapter implements TaskListener { public abstract String getName(); public void onPreExecute(GenericTask task) { }; public void onPostExecute(GenericTask task, TaskResult result) { }; public void onProgressUpdate(GenericTask task, Object param...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/task/TaskAdapter.java
Java
asf20
380
package com.ch_linghu.fanfoudroid.task; public enum TaskResult { OK, FAILED, CANCELLED, NOT_FOLLOWED_ERROR, IO_ERROR, AUTH_ERROR }
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/task/TaskResult.java
Java
asf20
134
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/PreferencesActivity.java
Java
asf20
2,768
package com.ch_linghu.fanfoudroid.db; /** * All information of status table * */ public final class StatusTablesInfo { }
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/db/StatusTablesInfo.java
Java
asf20
126
package com.ch_linghu.fanfoudroid.db; import android.database.Cursor; import android.provider.BaseColumns; import android.util.Log; import com.ch_linghu.fanfoudroid.data.User; public final class UserInfoTable implements BaseColumns { public static final String TAG = "UserInfoTable"; public static fin...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/db/UserInfoTable.java
Java
asf20
4,342
package com.ch_linghu.fanfoudroid.db; import java.text.ParseException; import android.database.Cursor; import android.provider.BaseColumns; import android.util.Log; import com.ch_linghu.fanfoudroid.data.Dm; /** * Table - Direct Messages * */ public final class MessageTable implements BaseColumns { public stat...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/db/MessageTable.java
Java
asf20
3,028
package com.ch_linghu.fanfoudroid.db; import android.database.Cursor; import android.provider.BaseColumns; import android.util.Log; import com.ch_linghu.fanfoudroid.data.Tweet; import com.ch_linghu.fanfoudroid.util.DateTimeHelper; /** * Table - Statuses <br /> * <br /> * 为节省流量,故此表不保证本地数据库中所有消息具有前后连贯性, 而只确保最新的MAX_...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/db/StatusTable.java
Java
asf20
6,291
package com.ch_linghu.fanfoudroid.db; import java.text.ParseException; import android.database.Cursor; import android.provider.BaseColumns; import android.util.Log; import com.ch_linghu.fanfoudroid.data.User; /** * Table - Followers * */ public final class FollowTable implements BaseColumns { public static fi...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/db/FollowTable.java
Java
asf20
4,341
package com.ch_linghu.fanfoudroid.db; import java.io.File; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.List; import java.util.Locale; import android.content.ContentValues; import android.content.Context; import android.content.SharedPreferences; import android.database.Cursor; imp...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/db/TwitterDatabase.java
Java
asf20
34,712
package com.ch_linghu.fanfoudroid; import java.util.ArrayList; import java.util.List; import android.app.SearchManager; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import android.util.Log; import android.view.KeyEvent; import android.view.Lay...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/SearchActivity.java
Java
asf20
11,514
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/WriteDmActivity.java
Java
asf20
12,236
package com.ch_linghu.fanfoudroid; import java.text.ParseException; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.database.Cursor; import android.graphics.B...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/DmActivity.java
Java
asf20
17,743
package com.ch_linghu.fanfoudroid.util; import java.io.InputStream; import java.io.OutputStream; public class StreamUtils { public static void CopyStream(InputStream is, OutputStream os) { final int buffer_size = 1024; try { byte[] bytes = new byte[buffer_size]; for (;;) { int count = is.rea...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/util/StreamUtils.java
Java
asf20
458
package com.ch_linghu.fanfoudroid.util; import java.text.DecimalFormat; import java.text.NumberFormat; import java.util.Arrays; import java.util.HashMap; import android.util.Log; import com.ch_linghu.fanfoudroid.TwitterApplication; /** * Debug Timer * * Usage: -------------------------------- DebugTimer.start()...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/util/DebugTimer.java
Java
asf20
3,972
package com.ch_linghu.fanfoudroid.util; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.Locale; import android.util.Log; import com.ch_linghu.fanfoudroid.R; import com.ch_linghu.fanfoudroid.TwitterAppl...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/util/DateTimeHelper.java
Java
asf20
3,060
package com.ch_linghu.fanfoudroid.util; import java.io.File; import java.io.IOException; import android.os.Environment; /** * 对SD卡文件的管理 * * @author ch.linghu * */ public class FileHelper { private static final String TAG = "FileHelper"; private static final String BASE_PATH = "fanfoudroid"; public static...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/util/FileHelper.java
Java
asf20
778
package com.ch_linghu.fanfoudroid.util; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import android.t...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/util/TextHelper.java
Java
asf20
4,585
/* * Copyright (C) 2009 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/StatusActivity.java
Java
asf20
23,198
package com.ch_linghu.fanfoudroid; import java.text.MessageFormat; import java.util.List; import android.content.Intent; import android.os.Bundle; import android.view.ContextMenu; import android.view.ContextMenu.ContextMenuInfo; import android.view.View; import android.widget.AdapterView; import android.widget.Adapte...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/FollowingActivity.java
Java
asf20
3,452
package com.ch_linghu.fanfoudroid; import java.util.HashSet; //import org.acra.ReportingInteractionMode; //import org.acra.annotation.ReportsCrashes; import android.app.Application; import android.content.Context; import android.content.SharedPreferences; import android.database.Cursor; import android.net...
061304011116lyj-lyj
src/com/ch_linghu/fanfoudroid/TwitterApplication.java
Java
asf20
8,108
package com.markupartist.android.widget; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.GestureDetector; import android.view.LayoutInflater; import android.view.MotionEv...
061304011116lyj-lyj
src/com/markupartist/android/widget/PullToRefreshListView.java
Java
asf20
15,869
#!/bin/bash # 打开apache.http调试信息 adb shell setprop log.tag.org.apache.http VERBOSE adb shell setprop log.tag.org.apache.http.wire VERBOSE adb shell setprop log.tag.org.apache.http.headers VERBOSE echo "Enable Debug"
061304011116lyj-lyj
tools/openHttpDebug.sh
Shell
asf20
229
/* Javadoc 样式表 */ /* 在此处定义颜色、字体和其他样式属性以覆盖默认值 */ /* 页面背景颜色 */ body { background-color: #FFFFFF; color:#000000 } /* 标题 */ h1 { font-size: 145% } /* 表格颜色 */ .TableHeadingColor { background: #CCCCFF; color:#000000 } /* 深紫色 */ .TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* 淡紫色 */ .TableRowColor ...
061304011116lyj-lyj
doc/stylesheet.css
CSS
asf20
1,370
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.jh.query.jquery; import java.util.ArrayList; import java.util.List; /** * * @author namhh */ public class main { ...
1001files
trunk/jquery/JQuery/src/com/jh/query/jquery/main.java
Java
asf20
1,034
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.jh.query.jquery; /** * * @author namhh * @param <_Type> */ public class BCol<_Type extends Object> implements Cloneab...
1001files
trunk/jquery/JQuery/src/com/jh/query/jquery/BCol.java
Java
asf20
1,265
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.jh.query.jquery; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; /** ...
1001files
trunk/jquery/JQuery/src/com/jh/query/jquery/BTable.java
Java
asf20
4,155
import com.jh.jutil.worker.Pool; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author namhh */ public class SimplePoolImp extends Pool{ }
1001files
trunk/jutil/test/SimplePoolImp.java
Java
asf20
297
import com.jh.jutil.worker.MonitorPool; import com.jh.jutil.worker.Observer; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author namhh */ public class PoolImp extend...
1001files
trunk/jutil/test/PoolImp.java
Java
asf20
472
import com.jh.jutil.worker.Subject; import com.jh.jutil.worker.AlertJob; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author namhh */ public class AlertJobImp extend...
1001files
trunk/jutil/test/AlertJobImp.java
Java
asf20
1,000
import com.jh.jutil.worker.Job; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author namhh */ public class JobImp extends Job{ @Override public void run() { ...
1001files
trunk/jutil/test/JobImp.java
Java
asf20
389
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.jh.jutil.sql.client; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql...
1001files
trunk/jutil/src/com/jh/jutil/sql/client/MysqlClient.java
Java
asf20
3,040
package com.jh.jutil.helper; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.nio.ByteBuffer; import java.nio.CharBuffer; import java.nio.charset.Charset; import java.nio.charset.CharsetDecoder; import java.nio.charset.CharsetEncoder; import java.security.MessageDi...
1001files
trunk/jutil/src/com/jh/jutil/helper/UtilHelper.java
Java
asf20
10,972
package com.jh.jutil.worker; import java.util.HashSet; import java.util.Set; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author namhh */ public abstract class Monit...
1001files
trunk/jutil/src/com/jh/jutil/worker/MonitorPool.java
Java
asf20
619
package com.jh.jutil.worker; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author namhh */ public abstract class Job implements Runnable{ private String jobName; ...
1001files
trunk/jutil/src/com/jh/jutil/worker/Job.java
Java
asf20
686
package com.jh.jutil.worker; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author namhh */ public interface Subject { void add(Observer observer); void remov...
1001files
trunk/jutil/src/com/jh/jutil/worker/Subject.java
Java
asf20
393
package com.jh.jutil.worker; import java.util.HashSet; import java.util.Set; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.RejectedExecutionHandler; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; /* * To change this license header, choose License ...
1001files
trunk/jutil/src/com/jh/jutil/worker/Pool.java
Java
asf20
1,865
package com.jh.jutil.worker; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author namhh */ public interface Observer { int update(Object object); int nof...
1001files
trunk/jutil/src/com/jh/jutil/worker/Observer.java
Java
asf20
344
package com.jh.jutil.worker; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author namhh */ public abstract class AlertJob extends Job implements Observer { prot...
1001files
trunk/jutil/src/com/jh/jutil/worker/AlertJob.java
Java
asf20
424
<!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>0597玩棋牌游戏平台</title> <link rel="stylesheet" type="text/css" href...
0597wan
trunk/download.html
HTML
asf20
5,653
var banner_index=0;//图片下标值 var time; var banner_ico_now_count=0;//活动按钮当前值 var banner_url=""; function imagePlayer(){ if(images[banner_index]!=null) { APpendBannerIco(); } banner_index++; if(banner_index>=images.length)//循环完一次,重新初始化index { banner_index=0...
0597wan
trunk/js/banner.js
JavaScript
asf20
2,479
<!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>0597玩棋牌游戏平台</title> <link rel="stylesheet" type="text/css" href...
0597wan
trunk/index.html
HTML
asf20
17,234
/* CSS Document */ a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, dialog, div, dl, dt, em, embed, fieldset, figcaption, figure, font, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, hr, html, i, iframe, img, ins, k...
0597wan
trunk/css/style.css
CSS
asf20
11,524
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Category Management</title> <link href="css/style.css" rel="stylesheet"> </head> <body> <?php require_once dirname(__FILE__) . '/dao_category.php'; $dao_category = new dao_category(); //Load ...
05-category-management
trunk/source/index.php
PHP
gpl3
6,404
<?php require_once dirname(__FILE__) . '/config.php'; class db_connection { public function open_connect() { $config = new config(); $db_host = $config->get_db_host(); $db_user = $config->get_db_user(); $db_pass = $config->get_db_pass(); $db_name = $config->get_...
05-category-management
trunk/source/db_connection.php
PHP
gpl3
551
<?php require_once dirname(__FILE__) . '/db_connection.php'; class dao_category { /** * * @return array of all category */ public function get_all() { $db = new db_connection(); $con = $db->open_connect(); $query = "SELECT * FROM tbl_category"; ...
05-category-management
trunk/source/dao_category.php
PHP
gpl3
5,221
<?php class config { private $db_name = '1191_category_management'; private $db_host = 'localhost'; private $db_user = 'root'; private $db_pass = ''; public function get_db_name() { return $this->db_name; } public function get_db_host() { return $this->db_ho...
05-category-management
trunk/source/config.php
PHP
gpl3
493
.container { width: 960px; margin-left: auto; margin-right: auto; } .top { margin-top: 100px; } .bottom { margin-top: 50px; } table, tr, th, td { border: 1px solid #000; padding: 10px; border-collapse: collapse; } th { color: red; }
05-category-management
trunk/source/css/style.css
CSS
gpl3
294
package b_Money; public class Currency { private String name; private Double rate; /** * New Currency * The rate argument of each currency indicates that Currency's "universal" exchange rate. * Imagine that we define the rate of each currency in relation to some universal currency. * This means that the r...
0703selab13
src/b_Money/Currency.java
Java
gpl3
1,532
package b_Money; public class AccountDoesNotExistException extends Exception { static final long serialVersionUID = 1L; }
0703selab13
src/b_Money/AccountDoesNotExistException.java
Java
gpl3
125
package b_Money; import java.util.Hashtable; public class Bank { private Hashtable<String, Account> accountlist = new Hashtable<String, Account>(); private String name; private Currency currency; /** * New Bank * @param name Name of this bank * @param currency Base currency of this bank (If this is a Swed...
0703selab13
src/b_Money/Bank.java
Java
gpl3
4,814
package b_Money; import java.util.Hashtable; public class Account { private Money content; private Hashtable<String, TimedPayment> timedpayments = new Hashtable<String, TimedPayment>(); Account(String name, Currency currency) { this.content = new Money(0, currency); } /** * Add a timed payment * @param i...
0703selab13
src/b_Money/Account.java
Java
gpl3
2,811
package b_Money; public class AccountExistsException extends Exception { static final long serialVersionUID = 1L; }
0703selab13
src/b_Money/AccountExistsException.java
Java
gpl3
119
package b_Money; import java.util.*; public class Money implements Comparable { private int amount; private Currency currency; /** * New Money * @param amount The amount of money * @param currency The currency of the money */ Money (Integer amount, Currency currency) { this.amount = amount; this.curre...
0703selab13
src/b_Money/Money.java
Java
gpl3
3,223
using System; using System.Collections.Generic; using System.Text; using DAL; using Entities; namespace BUS { public class tbDoanhNghiepBus { public static void Insert_DoanhNghiep(tbDoanhNghiep doanhnghiep) { tbDoanhNghiepDAL doanhnghiepDAL = new tbDoanhNghiepDAL(); ...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/BUS/tbDoanhNghiepBUS.cs
C#
gpl3
2,063
using System; using System.Data; using System.Configuration; using System.Web; using System.Text; using DAL; using Entities; /// <summary> /// Summary description for tbChiTietDHBUS /// </summary> public class tbChiTietDHBUS { public static void Insert_ChiTietDH(tbChiTietDH chitietdh) { tb...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/BUS/tbChiTietDHBUS.cs
C#
gpl3
1,869
using System; using System.Collections.Generic; using System.Text; using DAL; using Entities; namespace BUS { public class tbHangSanXuatBUS { public static void Insert_HangSanXuat(tbHangSanXuat hangsanxuat) { tbHangSanXuatDAL hangsanxuatDAL = new tbHangSanXuatDAL(); ...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/BUS/tbHangSanXuatBUS.cs
C#
gpl3
2,107
using System; using System.Collections.Generic; using System.Text; using DAL; using Entities; namespace BUS { public class tbDonHangBUS { public static void Insert_DonHang(tbDonHang donhang) { tbDonHangDAL donhangDAL = new tbDonHangDAL(); donhangDAL.Insert(d...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/BUS/tbDonHangBUS.cs
C#
gpl3
1,859
using System; using System.Collections.Generic; using System.Text; using DAL; using Entities; namespace BUS { public class tbTTGiaoDichBus { public static void Insert_ChuDe(tbTTGiaoDich ttgiaodich) { tbTTGiaoDichDAL ttgiaodichDAL = new tbTTGiaoDichDAL(); tt...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/BUS/tbTTGiaoDichBUS.cs
C#
gpl3
1,995
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...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/BUS/Properties/AssemblyInfo.cs
C#
gpl3
1,385
using System; using System.Collections.Generic; using System.Text; using Entities; using DAL; namespace BUS { public class tbTrangThaiSPBUS { public static void Insert_TrangThaiSP(tbTrangThaiSP trangthaisp) { tbTrangThaiSPDAL trangthaispDAL = new tbTrangThaiSPDAL(); ...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/BUS/tbTrangThaiSPBUS.cs
C#
gpl3
2,062
using System; using System.Collections.Generic; using System.Text; using Entities; using DAL; namespace BUS { public class tbKhachHangBUS { public static void Insert(tbKhachHang khachhang) { tbKhachHangDAL khachhangDAL = new tbKhachHangDAL(); khachhangDAL.In...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/BUS/tbKhachHangBUS.cs
C#
gpl3
1,917
using System; using System.Collections.Generic; using System.Text; using System.Configuration; using Entities; using System.Data.SqlClient; using System.Data; using DAL; namespace BUS { public class tbLoaiSPBUS { public static void Insert_LoaiSP(tbLoaiSP loaisp) { tbL...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/BUS/tbLoaiSPBUS.cs
C#
gpl3
1,902
using System; using System.Collections.Generic; using System.Text; namespace BUS { public class Class1 { } }
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/BUS/Class1.cs
C#
gpl3
132
using System; using System.Collections.Generic; using System.Text; using DAL; using Entities; namespace BUS { public class tbHTThanhToanBus { public static void Insert_HTThanhtoan(tbHTThanhToan htthanhtoan) { tbHTThanhToanDAL htthanhtoanDAL = new tbHTThanhToanDAL(); ...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/BUS/tbHTThanhToanBUS.cs
C#
gpl3
2,054
using System; using System.Collections.Generic; using System.Text; using DAL; using Entities; namespace BUS { public class tbHinhAnhBus { public static void Insert_HinhAnh(tbHinhAnh hinhanh) { tbHinhAnhDAL hinhanhDAL = new tbHinhAnhDAL(); hinhanhDAL.Insert(...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/BUS/tbHinhAnhBUS.cs
C#
gpl3
1,851
using System; using System.Collections.Generic; using System.Text; using Entities; using DAL; using System.Data.SqlClient; namespace BUS { public class tbTTDonHangBus { public static void Insert_ChuDe(tbTTDonHang ttdonhang) { tbTTDonHangDAL ttdonhangDAL = new tbTTDonHa...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/BUS/tbTTDonHangBUS.cs
C#
gpl3
1,975
using System; using System.Collections.Generic; using System.Text; using DAL; using Entities; namespace BUS { public class tbSanPhamBus { public static void Insert_SanPham(tbSanPham sanpham) { tbsanphamDAL sanphamDAL = new tbsanphamDAL(); sanphamDAL.Insert(...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/BUS/tbSanPhamBUS.cs
C#
gpl3
1,851
using System; using System.Collections.Generic; using System.Text; using DAL; using Entities; namespace BUS { public class tbMaSoSPBUS { public static void Insert_MaSoSP(tbMaSoSP masosp) { tbMaSoSPDAL masospDAL = new tbMaSoSPDAL(); masospDAL.Insert(masosp);...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/BUS/tbMaSoSPBUS.cs
C#
gpl3
1,792
using System; using System.Collections.Generic; using System.Text; using Entities; using DAL; using System.Data.SqlClient; namespace BUS { public class tbNhanVienBUS { public static void Insert(tbNhanVien nhanvien) { tbNhanVienDAL nhanvienDAL = new tbNhanVienDAL(); ...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/BUS/tbNhanVienBUS.cs
C#
gpl3
1,917
using System; using System.Collections.Generic; using System.Text; using DAL; using Entities; namespace BUS { public class tbDiaDiemBUS { public static void Insert(tbDiaDiem diadiem) { tbDiaDiemDAL diadiemDAL = new tbDiaDiemDAL(); diadiemDAL.Insert(diadiem);...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/BUS/tbDiaDiemBUS.cs
C#
gpl3
1,988
Create Table SanPham ( IDSanPham int identity(1,1), TenSanPham nvarchar(255), IDLoaiSP int, IDDiaDiem int, IDHangSanXuat int, GiaBan int, GiaTriThuc int, DieuKienSuDung nvarchar(255), MoTaSP nvarchar(255), SoLuongSP int, SoLuongBan int, SoLuongDaBan int, IDTrangThaiSP int, NgayBDBan datetime, NgayKTBan ...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/App_Data/groupon_nhom1.sql
TSQL
gpl3
26,448
<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="DoanhNghiepList.aspx.cs" Inherits="Admin_DoanhNghiepList" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="menuPlaceHolder" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlac...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/Admin/DoanhNghiepList.aspx
ASP.NET
gpl3
386
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class Admin_NhanVienAdd : Syste...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/Admin/NhanVienAdd.aspx.cs
C#
gpl3
415
<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="NhanVienList.aspx.cs" Inherits="Admin_NhanVienList" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="menuPlaceHolder" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolde...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/Admin/NhanVienList.aspx
ASP.NET
gpl3
380
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using Entities; using BUS; using DAL; using U...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/Admin/LoaiSPList.aspx.cs
C#
gpl3
2,945
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using Entities; using BUS; using DAL; using U...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/Admin/LoaiSPAdd.aspx.cs
C#
gpl3
774
<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="LoaiSPAdd.aspx.cs" Inherits="Admin_LoaiSPAdd" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="menuPlaceHolder" Runat="Server"> <h5>Menu</h5> <ul class ="Actions"> <li><a href ="sanphamlist.a...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/Admin/LoaiSPAdd.aspx
ASP.NET
gpl3
1,813
function $(str){ return document.getElementById(str); } function CheckAll(obj) { var checkAll = true; var checkList = document.getElementsByTagName("input"); if(obj == 2) { $("cb_All").checked = !$("cb_All").checked; } if(!$("cb_All").checked) checkAll = false; ...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/Admin/js/JScript.js
JavaScript
gpl3
533
<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="DoanhNghiepAdd.aspx.cs" Inherits="Admin_DoanhNghiepAdd" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="menuPlaceHolder" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceH...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/Admin/DoanhNghiepAdd.aspx
ASP.NET
gpl3
384
<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="LoaiSPList.aspx.cs" Inherits="Admin_LoaiSPList" Title="Untitled Page" %> <%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %> <asp:Content ID="Content1" ContentPlaceHolderID="menuPlaceH...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/Admin/LoaiSPList.aspx
ASP.NET
gpl3
3,866
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class Admin_DoanhNghiepAdd : Sy...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/Admin/DoanhNghiepAdd.aspx.cs
C#
gpl3
418
<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="DiaDiemList.aspx.cs" Inherits="Admin_DiaDiemList" Title="Untitled Page" %> <%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %> <asp:Content ID="Content1" ContentPlaceHolderID="menuPlac...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/Admin/DiaDiemList.aspx
ASP.NET
gpl3
3,879
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using Entities; using Utility; using BUS; ...
02cdnth2-nhom1
trunk/source/02cdnth2_nhom1 _ them diadiem,loaisp/02cdnth2_nhom1_vantuan/Website/Admin/DiaDiemAdd.aspx.cs
C#
gpl3
759