Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support show div on select - range of dates Post 302598949 by lawstudent on Wednesday 15th of February 2012 08:11:49 PM
Old 02-15-2012
show div on select - range of dates

Hi,

I am sure this is simple, but I am breaking my head.

I need 1 page with at the top a range of dates, 2002, 2003, 2004 etc
If you select 2002 it will show the content of 1 div, if you select 2002 the content of another div.

this is for showing announcements on a site, right now there are 10 html files, each showing the announcement of that year, I simple like to move that all to 1 page, dates at top... and voila..

Help?
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Select entries between two dates by converting Unix timestamp in Oracle Database.

Hi, I need to select the entries between two dates from an Oracle db. The Oracle db has a column with Unix timestamps. I use the following querry, but it doesnt seem to be working as desired. select count(*) from reporter_status where to_char(FIRSTOCCURRENCE, 'mm-dd-yy') between ('08-07-06')... (1 Reply)
Discussion started by: amitsayshii
1 Replies

2. UNIX for Dummies Questions & Answers

Display dates within a given date range

Hi All, I have a requirement to display all the dates within the provided (through user input) date range. For eg: If I enter 28012009 (as From date in the format 'DDMMYYYY') and 02022009(as To date in the format 'DDMMYYYY'), the output should be all dates occuring between the from and to... (11 Replies)
Discussion started by: sunpraveen
11 Replies

3. Shell Programming and Scripting

Need script to select multiple files from archive directory based on the date range

hi all, here is the description to my problem. input parameters: $date1 & $date2 based on the range i need to select the archived files from the archived directory and moved them in to working directory. can u please help me in writing the code to select the multiple files based on the... (3 Replies)
Discussion started by: bbc17484
3 Replies

4. Shell Programming and Scripting

pull range of dates/times and put into new file

Need to pull from a range of dates/times (ex. 6:00 AM March 3 through 6:00 AM March 4) from a folder and put those file names in a new file to process later. Dates would not be hard dates but dates from the folder directory, how would I do that? (9 Replies)
Discussion started by: freddie999
9 Replies

5. UNIX for Dummies Questions & Answers

select nth file & range of files

Two related questions; 1. how do i select the nth file in a directory? 2. how do i select a range of files, say 2nd-5th? I have done the following but I don't think the solution is a neat one. Query 1: select nth file - say 3rd file; #!/bin/bash touch foo1 foo2 foo3 foo4 foo5 foo6... (1 Reply)
Discussion started by: Muhammad Rahiz
1 Replies

6. Shell Programming and Scripting

Using 'date' to list a range of dates

Hi guys, I have been trying to create a list of dates from a certain range, ie. range from 01011950 to 31122000 But when my below code reaches certain dates, it comes up with a; 'date: invalid date 'yyyy-mm-dd -d 1day' Sofar I have come up with the following, slow and ugly; ... (4 Replies)
Discussion started by: TAPE
4 Replies

7. Shell Programming and Scripting

Select columns from a matrix given within a range in BASH

I have a huge matrix file which looks like this (example matrix): 1 2 3 5 4 5 6 7 7 6 8 9 1 2 4 2 7 6 5 1 3 2 1 9 As one can see, this matrix has 4 columns and 6 rows. But my original matrix has some 3 million rows and 6000 columns. For example, on this matrix I can define my task as... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies

8. Shell Programming and Scripting

Display data from a range of dates

I have a data in a file called SCHED which has 5 columns: sched no, date, time, place and remarks. The image is shown below. http://dl.dropbox.com/u/54949888/Screenshot%20from%202013-01-02%2002%3A42%3A25.png Now, I want to display only the schedules which fall under a certain date range which... (2 Replies)
Discussion started by: angilulu
2 Replies
GLBLENDEQUATIONSEPAR(3G)					    OpenGL 3.3						  GLBLENDEQUATIONSEPAR(3G)

NAME
glBlendEquationSeparate - set the RGB blend equation and the alpha blend equation separately C SPECIFICATION
void glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha); PARAMETERS
modeRGB specifies the RGB blend equation, how the red, green, and blue components of the source and destination colors are combined. It must be GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT, GL_MIN, GL_MAX. modeAlpha specifies the alpha blend equation, how the alpha component of the source and destination colors are combined. It must be GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT, GL_MIN, GL_MAX. DESCRIPTION
The blend equations determines how a new pixel (the ''source'' color) is combined with a pixel already in the framebuffer (the ''destination'' color). This function specifies one blend equation for the RGB-color components and one blend equation for the alpha component. The blend equations use the source and destination blend factors specified by either glBlendFunc() or glBlendFuncSeparate(). See glBlendFunc() or glBlendFuncSeparate() for a description of the various blend factors. In the equations that follow, source and destination color components are referred to as R s G s B s A s and R d G d B d A d, respectively. The result color is referred to as R r G r B r A r. The source and destination blend factors are denoted s R s G s B s A and d R d G d B d A, respectively. For these equations all color components are understood to have values in the range 0 1. +-----------------------------+-----------------------------------------------------+-----------------------------------------------------+ | | | | | Mode | RGB | Alpha | | | Components | Component | | | | | +-----------------------------+-----------------------------------------------------+-----------------------------------------------------+ |GL_FUNC_ADD | <div> | <div> | | | | | | | | | | | Rr | Ar | | | = | = | | | | | | | R | A | | | s | s | | | | | | | | | | | s | s | | | R | A | | | | | | | + | + | | | R | A | | | d | d | | | | | | | | | | | d | d | | | R | A | | | | | | | | | | | | | | | </div> | </div> | | | <div> | | | | | | | | | | | | Gr | | | | = | | | | | | | | G | | | | s | | | | | | | | | | | | s | | | | G | | | | | | | | + | | | | G | | | | d | | | | | | | | | | | | d | | | | G | | | | | | | | | | | | | | | | </div> | | | | <div> | | | | | | | | | | | | Br | | | | = | | | | | | | | B | | | | s | | | | | | | | | | | | s | | | | B | | | | | | | | + | | | | B | | | | d | | | | | | | | | | | | d | | | | B | | | | | | | | | | | | | | | | </div> | | +-----------------------------+-----------------------------------------------------+-----------------------------------------------------+ |GL_FUNC_SUBTRACT | <div> | <div> | | | | | | | | | | | Rr | Ar | | | = | = | | | | | | | R | A | | | s | s | | | | | | | | | | | s | s | | | R | A | | | | | | | - | - | | | R | A | | | d | d | | | | | | | | | | | d | d | | | R | A | | | | | | | | | | | | | | | </div> | </div> | | | <div> | | | | | | | | | | | | Gr | | | | = | | | | | | | | G | | | | s | | | | | | | | | | | | s | | | | G | | | | | | | | - | | | | G | | | | d | | | | | | | | | | | | d | | | | G | | | | | | | | | | | | | | | | </div> | | | | <div> | | | | | | | | | | | | Br | | | | = | | | | | | | | B | | | | s | | | | | | | | | | | | s | | | | B | | | | | | | | - | | | | B | | | | d | | | | | | | | | | | | d | | | | B | | | | | | | | | | | | | | | | </div> | | +-----------------------------+-----------------------------------------------------+-----------------------------------------------------+ |GL_FUNC_REVERSE_SUBTRACT | <div> | <div> | | | | | | | | | | | Rr | Ar | | | = | = | | | | | | | R | A | | | d | d | | | | | | | | | | | d | d | | | R | A | | | | | | | - | - | | | R | A | | | s | s | | | | | | | | | | | s | s | | | R | A | | | | | | | | | | | | | | | </div> | </div> | | | <div> | | | | | | | | | | | | Gr | | | | = | | | | | | | | G | | | | d | | | | | | | | | | | | d | | | | G | | | | | | | | - | | | | G | | | | s | | | | | | | | | | | | s | | | | G | | | | | | | | | | | | | | | | </div> | | | | <div> | | | | | | | | | | | | Br | | | | = | | | | | | | | B | | | | d | | | | | | | | | | | | d | | | | B | | | | | | | | - | | | | B | | | | s | | | | | | | | | | | | s | | | | B | | | | | | | | | | | | | | | | </div> | | +-----------------------------+-----------------------------------------------------+-----------------------------------------------------+ |GL_MIN | <div> | <div> | | | | | | | | | | | Rr | Ar | | | = | = | | | | | | | min | min | | | | | | | | | | | | | | | R | A | | | s | s | | | | | | | | | | | | | | | R | A | | | d | d | | | | | | | | | | | | | | | | | | | | | | | </div> | </div> | | | <div> | | | | | | | | | | | | Gr | | | | = | | | | | | | | min | | | | | | | | | | | | | | | | G | | | | s | | | | | | | | | | | | | | | | G | | | | d | | | | | | | | | | | | | | | | | | | | | | | | </div> | | | | <div> | | | | | | | | | | | | Br | | | | = | | | | | | | | min | | | | | | | | | | | | | | | | B | | | | s | | | | | | | | | | | | | | | | B | | | | d | | | | | | | | | | | | | | | | | | | | | | | | </div> | | +-----------------------------+-----------------------------------------------------+-----------------------------------------------------+ |GL_MAX | <div> | <div> | | | | | | | | | | | Rr | Ar | | | = | = | | | | | | | max | max | | | | | | | | | | | | | | | R | A | | | s | s | | | | | | | | | | | | | | | R | A | | | d | d | | | | | | | | | | | | | | | | | | | | | | | </div> | </div> | | | <div> | | | | | | | | | | | | Gr | | | | = | | | | | | | | max | | | | | | | | | | | | | | | | G | | | | s | | | | | | | | | | | | | | | | G | | | | d | | | | | | | | | | | | | | | | | | | | | | | | </div> | | | | <div> | | | | | | | | | | | | Br | | | | = | | | | | | | | max | | | | | | | | | | | | | | | | B | | | | s | | | | | | | | | | | | | | | | B | | | | d | | | | | | | | | | | | | | | | | | | | | | | | </div> | | +-----------------------------+-----------------------------------------------------+-----------------------------------------------------+ The results of these equations are clamped to the range 0 1. The GL_MIN and GL_MAX equations are useful for applications that analyze image data (image thresholding against a constant color, for example). The GL_FUNC_ADD equation is useful for antialiasing and transparency, among other things. Initially, both the RGB blend equation and the alpha blend equation are set to GL_FUNC_ADD. NOTES
The GL_MIN, and GL_MAX equations do not use the source or destination factors, only the source and destination colors. ERRORS
GL_INVALID_ENUM is generated if either modeRGB or modeAlpha is not one of GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT, GL_MAX, or GL_MIN. ASSOCIATED GETS
glGet() with an argument of GL_BLEND_EQUATION_RGB glGet() with an argument of GL_BLEND_EQUATION_ALPHA SEE ALSO
glGetString(), glBlendColor(), glBlendFunc(), glBlendFuncSeparate() COPYRIGHT
Copyright (C) 2006 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. OpenGL 3.3 03/08/2011 GLBLENDEQUATIONSEPAR(3G)
All times are GMT -4. The time now is 12:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy