. -- edit the last SQL statement of the buffer to the file. By default, vi is called. The file will be placed in the/tmp path and ego (\ G) Send command to mysql server, display resu Lt vertically. -- The control result is displayed as vertical exit (\ q) Exit mysql. same as quit. -- exit mysqlgo (\ g) Send command to mysql server. -- send the command to mysql service help (\ h) Display this help. nopager (\ n) Disable pager, print to stdout. -- close
Got my offer from GE Zhou yinhui
Today I got my offer form GE. About a month later I'll joining gehc. That's great!
---------------------------------------About Ge
GE is imagination at work. from jet engines to power generation, financial services to water pracessing, and medical imaging to media content, GE people worldwide are dedicated to turning imaginative ideas into leading products and services that help solve some of the world's toughest problems. visit our website at http://www.
Using ASP to write network paging machine
You like surfing the Internet friends must have been to the virtual community NetEase, inside the pager function must be very popular. Through the pager, we can call anyone who is currently surfing in a virtual community and can chat online.
In fact, we use ASP can fully realize with netease virtual community inside the same function of the
Network you like to surf the Internet friends must have been to NetEase's virtual community bar, inside the pager function must be very popular. Through the pager, we can call anyone who is currently surfing in a virtual community and can chat online.
In fact, we use ASP can fully realize with netease virtual community inside the same function of the pager, how?
Displaying tabular data involves things like field display hiding, data status, paging, and so on.
Because our company's products involve a lot of tabular data display, and each table has a lot of fields, in the work process (several colleagues of the efforts), integrated a set of more lightweight plans. As shown in figure:
The main plug-ins involved are:JQuery.columnmanager.expand.js (Extended Columnmanager)JQuery.dropbox.js (self-written)JQuery.pager.expand.js (Extended
file, the default call VI, the file will be placed under the/tmp path ego (\g) Send command to MySQL server, display result vertically. --control results displayed as vertical exit (\q) Exit MySQL. Same as quit. --Exit MySQL Go (\g) Send command to MySQL server.
--Send command to MySQL service Help (\h) Display this help. Nopager (\ n) Disable Pager, print to stdout. --Close Page setu
connection in the following code uses the pear db class for processing.
_ SetOptions ($ option); // Total number of items if (! Isset ($ this-> numItems) {$ res = $ db-> query ($ this-> SQL ); $ this-> numItems = $ res-> numRows ();} // the total number of pages if ($ this-> numItems> 0) {if ($ this-> numItems $ SQL, "PageSize" => 10, "CurrentPageID" => $ page); if (isset ($ _ GET ['numitems ']) {$ pager_option ['numitems '] = (int) $ _ GET ['numitems'];} $
)receive ETWS message indication。 Whether it appears in the pager messageetws-indicationfield is determined.(8)receive CMAs message indication。 Whether the pager message appearscmas-indicationfield is determined.Above these 3 kinds of scenarios can be summed up in the service cell broadcast parameters have changed, need UE re-acquisition.(9)receive CDMA2000 upper instruction。 At this point, the UE needs to
function executeList (){$ This-> questions = QuestionPeer: doSelect (new Criteria ());}
We will modify this action to pass an sfPropelPager to the template instead of an array. At the same time, we will sort the questions based on the number of interest:
The code is as follows:
Public function executeList (){$ Pager = new sfPropelPager ('question', 2 );$ C = new Criteria ();$ C-> addDescendingOrderByColumn (QuestionPeer: INTERESTED_USERS );$
most basic requirements of the plug-in. What is the most basic requirement of the paging plug-in? It is nothing more than page display and page switch between pages, therefore, our plug-ins need to focus on this basic requirement, rather than considering other possible requirements for the moment.
Determine the html and css plug-ins
After determining the requirements of the plug-in, the second step is the plug-in UI, that is, html and css.Assume that the basic ui is as follows:
Looking at the
Determining requirements is the first step in developing plug-ins. To develop a lightweight paging plug-in, let's start with the most basic requirements of the plug-in. What is the most basic requirement of the paging plug-in? It is nothing more than page display and page switch between pages, therefore, our plug-ins need to focus on this basic requirement, rather than considering other possible requirements for the moment.
Determine the html and css plug-ins
After determining the requirements
display action of the problem module:Copy the Code Code as follows: Public function executelist (){$this->questions = questionpeer::d oselect (New Criteria ());}
We will modify this action to pass a sfpropelpager to the template instead of passing an array. At the same time, we will sort the questions according to the number of interests:Copy the Code Code as follows: Public function executelist (){$pager = new Sfpropelpager (' Question ', 2);$c = ne
;
var $pager = $ ("#pager");
Clear the contents of the page div
$ ("#pager span"). Remove ();
$ ("#pager a"). Remove ();
Add first page
if (Intpageindex = 1)
$pager. Append ("else {
var first = $ ("Pageclick ($ (this). attr (' a '), total, spaninterval);
return fals
{get; set;}}
Show Page
The code is as follows
Copy Code
JS Code
The code is as follows
Copy Code
$ (function () {$.post ("Getdata.ashx", NULL, function (data) {var total = data;Pageclick (1, Total, 3);});Pageclick = function (PageIndex, total, spaninterval) {$.ajax ({URL: "Getdata.ashx",Data: {"PageIndex": PageIndex},Type: "Post",DataType: "JSON",Success:function (data) {Index starting from 1Convert current pa
Displaying a large amount of data on a page is a common practice in Web projects, but limited to the size of the screen, we usually need to display the data paging to make it easier for users to read, so paging is an essential part of the project. PEAR::P Ager is a powerful paging class that is very handy to use. System requirements: php4.3.*/php5,pear::P ager PEAR::P Ager has two pagination display modes, one is jumping, the other is sliding. What is the difference between the two, let's look a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.