diff options
author | emkael <emkael@tlen.pl> | 2016-02-24 23:18:07 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-02-24 23:18:07 +0100 |
commit | 6f7fdef0f500cd4bb540affd3bc1482243f337c1 (patch) | |
tree | 4853eecd0769a903e6130c1896e1d070848150dd /lib/prado/framework/Web/UI/WebControls/assets | |
parent | 61f2ea48a4e11cb5fb941b3783e19c9e9ef38a45 (diff) |
* Prado 3.3.0
Diffstat (limited to 'lib/prado/framework/Web/UI/WebControls/assets')
-rwxr-xr-x | lib/prado/framework/Web/UI/WebControls/assets/TSlider/TSlider.css | 96 | ||||
-rw-r--r-- | lib/prado/framework/Web/UI/WebControls/assets/TSlider/TSliderHandleHorizontal.png | bin | 0 -> 286 bytes | |||
-rw-r--r-- | lib/prado/framework/Web/UI/WebControls/assets/TSlider/TSliderHandleVertical.png | bin | 0 -> 249 bytes | |||
-rw-r--r-- | lib/prado/framework/Web/UI/WebControls/assets/accordion.css | 28 | ||||
-rw-r--r-- | lib/prado/framework/Web/UI/WebControls/assets/captcha.php | 223 | ||||
-rw-r--r-- | lib/prado/framework/Web/UI/WebControls/assets/keyboard.css | 80 | ||||
-rw-r--r-- | lib/prado/framework/Web/UI/WebControls/assets/tabpanel.css | 71 | ||||
-rw-r--r-- | lib/prado/framework/Web/UI/WebControls/assets/verase.ttf | bin | 0 -> 60280 bytes |
8 files changed, 498 insertions, 0 deletions
diff --git a/lib/prado/framework/Web/UI/WebControls/assets/TSlider/TSlider.css b/lib/prado/framework/Web/UI/WebControls/assets/TSlider/TSlider.css new file mode 100755 index 0000000..458467e --- /dev/null +++ b/lib/prado/framework/Web/UI/WebControls/assets/TSlider/TSlider.css @@ -0,0 +1,96 @@ +/* Base CSS Class for the slider */ +.Slider
+{
+ position: relative;
+ margin: 10px;
+ padding: 0;
+ background-color: Gainsboro;
+ border: 1px outset;
+}
+
+/* Class for horizontal slider */ +.HorizontalSlider +{ + width: 210px;
+ height: 14px; + text-align: left;
+} +
+/* Class for vertical slider */
+.VerticalSlider
+{
+ height: 210px;
+ width: 14px;
+}
+
+/* Class for Track */ +.Track
+{
+ border-style: inset;
+ outline-color: invert;
+ outline-style: none;
+ outline-width: 1px;
+ border-width: 1px;
+ position: absolute;
+ background-color: lightBlue;
+}
+
+/* Horizontal Track */ +.HorizontalSlider .Track +{ + + height: 3px;
+ top: 5px; + width: 97%;
+ left: 1%; +} +
+/* Vertical Track */
+.VerticalSlider .Track
+{
+ height: 97%;
+ width: 3px;
+ left: 5px;
+ top: 1%;
+}
+
+/* Class for the progress indicator */
+.Progress
+{
+ background-color: red;
+}
+
+/* Horizontal one, take 100% of track (parent) height*/
+.HorizontalSlider .Progress
+{
+ height: 100%;
+}
+
+/* Vertical progress indicator, take 100% of track width*/
+.VerticalSlider .Progress
+{
+ width: 100%
+}
+
+/* Class for handle */
+.Handle {
+ border: 0px none;
+ position: relative;
+ cursor: move;
+}
+
+/* Horizontal slider handle */ +.HorizontalSlider .Handle +{ + width: 31px; + height: 14px; + background: transparent url("TSliderHandleHorizontal.png") no-repeat scroll center; +}
+
+/* Vertical slider handle */
+.VerticalSlider .Handle
+{
+ width: 14px;
+ height: 31px;
+ background: transparent url("TSliderHandleVertical.png") no-repeat scroll center;
+} diff --git a/lib/prado/framework/Web/UI/WebControls/assets/TSlider/TSliderHandleHorizontal.png b/lib/prado/framework/Web/UI/WebControls/assets/TSlider/TSliderHandleHorizontal.png Binary files differnew file mode 100644 index 0000000..d9dc7ff --- /dev/null +++ b/lib/prado/framework/Web/UI/WebControls/assets/TSlider/TSliderHandleHorizontal.png diff --git a/lib/prado/framework/Web/UI/WebControls/assets/TSlider/TSliderHandleVertical.png b/lib/prado/framework/Web/UI/WebControls/assets/TSlider/TSliderHandleVertical.png Binary files differnew file mode 100644 index 0000000..00532fb --- /dev/null +++ b/lib/prado/framework/Web/UI/WebControls/assets/TSlider/TSliderHandleVertical.png diff --git a/lib/prado/framework/Web/UI/WebControls/assets/accordion.css b/lib/prado/framework/Web/UI/WebControls/assets/accordion.css new file mode 100644 index 0000000..842868e --- /dev/null +++ b/lib/prado/framework/Web/UI/WebControls/assets/accordion.css @@ -0,0 +1,28 @@ +
+div.accordion {
+ position: relative;
+}
+
+div.accordion-header {
+ padding: 3px;
+ z-index: 10; position: relative;
+ cursor: pointer;
+ background-color: #5577aa;
+ color: white; font-weight: bold;
+ border: 1px solid;
+}
+
+div.accordion-header-active {
+ padding: 3px;
+ z-index: 10; position: relative;
+ cursor: pointer;
+ background-color: #334477;
+ color: red; font-weight: bold;
+ border: 1px solid red;
+}
+
+div.accordion-view {
+ overflow: auto;
+ padding-left: 3px; padding-right: 3px;
+ margin-bottom: 2px;
+}
diff --git a/lib/prado/framework/Web/UI/WebControls/assets/captcha.php b/lib/prado/framework/Web/UI/WebControls/assets/captcha.php new file mode 100644 index 0000000..bc20a57 --- /dev/null +++ b/lib/prado/framework/Web/UI/WebControls/assets/captcha.php @@ -0,0 +1,223 @@ +<?php +/** + * CAPTCHA generator script. + * + * @author Qiang Xue <qiang.xue@gmail.com> + * @link https://github.com/pradosoft/prado + * @copyright Copyright © 2005-2015 The PRADO Group + * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT + * @package System.Web.UI.WebControls.assets + */ + +define('THEME_OPAQUE_BACKGROUND',0x0001); +define('THEME_NOISY_BACKGROUND',0x0002); +define('THEME_HAS_GRID',0x0004); +define('THEME_HAS_SCRIBBLE',0x0008); +define('THEME_MORPH_BACKGROUND',0x0010); +define('THEME_SHADOWED_TEXT',0x0020); + +require_once(dirname(__FILE__).'/captcha_key.php'); + +$token='error'; +$theme=0; + +if(isset($_GET['options'])) +{ + $str=base64_decode($_GET['options']); + if(strlen($str)>32) + { + $hash=substr($str,0,32); + $str=substr($str,32); + if(md5($privateKey.$str)===$hash) + { + $options=unserialize($str); + $publicKey=$options['publicKey']; + $tokenLength=$options['tokenLength']; + $caseSensitive=$options['caseSensitive']; + $alphabet=$options['alphabet']; + $fontSize=$options['fontSize']; + $theme=$options['theme']; + if(($randomSeed=$options['randomSeed'])>0) + srand($randomSeed); + else + srand((int)(microtime()*1000000)); + $token=generateToken($publicKey,$privateKey,$alphabet,$tokenLength,$caseSensitive); + } + } +} + +displayToken($token,$fontSize,$theme); + +function generateToken($publicKey,$privateKey,$alphabet,$tokenLength,$caseSensitive) +{ + $token=substr(hash2string(md5($publicKey.$privateKey),$alphabet).hash2string(md5($privateKey.$publicKey),$alphabet),0,$tokenLength); + return $caseSensitive?$token:strtoupper($token); +} + +function hash2string($hex,$alphabet) +{ + if(strlen($alphabet)<2) + $alphabet='234578adefhijmnrtABDEFGHJLMNRT'; + $hexLength=strlen($hex); + $base=strlen($alphabet); + $result=''; + for($i=0;$i<$hexLength;$i+=6) + { + $number=hexdec(substr($hex,$i,6)); + while($number) + { + $result.=$alphabet[$number%$base]; + $number=floor($number/$base); + } + } + return $result; +} + +function displayToken($token,$fontSize,$theme) +{ + if(($fontSize=(int)$fontSize)<22) + $fontSize=22; + if($fontSize>100) + $fontSize=100; + $length=strlen($token); + $padding=10; + $fontWidth=$fontSize; + $fontHeight=floor($fontWidth*1.5); + $width=$fontWidth*$length+$padding*2; + $height=$fontHeight; + $image=imagecreatetruecolor($width,$height); + + addBackground + ( + $image, $width, $height, + $theme&THEME_OPAQUE_BACKGROUND, + $theme&THEME_NOISY_BACKGROUND, + $theme&THEME_HAS_GRID, + $theme&THEME_HAS_SCRIBBLE, + $theme&THEME_MORPH_BACKGROUND + ); + + $font=dirname(__FILE__).DIRECTORY_SEPARATOR.'verase.ttf'; + + if(function_exists('imagefilter')) + imagefilter($image,IMG_FILTER_GAUSSIAN_BLUR); + + $hasShadow=($theme&THEME_SHADOWED_TEXT); + for($i=0;$i<$length;$i++) + { + $color=imagecolorallocate($image,rand(150,220),rand(150,220),rand(150,220)); + $size=rand($fontWidth-10,$fontWidth); + $angle=rand(-30,30); + $x=$padding+$i*$fontWidth; + $y=rand($fontHeight-15,$fontHeight-10); + imagettftext($image,$size,$angle,$x,$y,$color,$font,$token[$i]); + if($hasShadow) + imagettftext($image,$size,$angle,$x+2,$y+2,$color,$font,$token[$i]); + imagecolordeallocate($image,$color); + } + + header('Content-Type: image/png'); + imagepng($image); + imagedestroy($image); +} + +function addBackground($image,$width,$height,$opaque,$noisy,$hasGrid,$hasScribble,$morph) +{ + $background=imagecreatetruecolor($width*2,$height*2); + $white=imagecolorallocate($background,255,255,255); + imagefill($background,0,0,$white); + + if($opaque) + imagefill($background,0,0,imagecolorallocate($background,100,100,100)); + + if($noisy) + addNoise($background,$width*2,$height*2); + + if($hasGrid) + addGrid($background,$width*2,$height*2); + + if($hasScribble) + addScribble($background,$width*2,$height*2); + + if($morph) + morphImage($background,$width*2,$height*2); + + imagecopy($image,$background,0,0,30,30,$width,$height); + + if(!$opaque) + imagecolortransparent($image,$white); +} + +function addNoise($image,$width,$height) +{ + for($x=0;$x<$width;++$x) + { + for($y=0;$y<$height;++$y) + { + if(rand(0,100)<25) + { + $color=imagecolorallocate($image,rand(150,220),rand(150,220),rand(150,220)); + imagesetpixel($image,$x,$y,$color); + imagecolordeallocate($image,$color); + } + } + } +} + +function addGrid($image,$width,$height) +{ + for($i=0;$i<$width;$i+=rand(15,25)) + { + imagesetthickness($image,rand(2,6)); + $color=imagecolorallocate($image,rand(100,180),rand(100,180),rand(100,180)); + imageline($image,$i+rand(-10,20),0,$i+rand(-10,20),$height,$color); + imagecolordeallocate($image,$color); + } + for($i=0;$i<$height;$i+=rand(15,25)) + { + imagesetthickness($image,rand(2,6)); + $color=imagecolorallocate($image,rand(100,180),rand(100,180),rand(100,180)); + imageline($image,0,$i+rand(-10,20),$width,$i+rand(-10,20),$color); + imagecolordeallocate($image,$color); + } +} + +function addScribble($image,$width,$height) +{ + for($i=0;$i<8;$i++) + { + $color=imagecolorallocate($image,rand(100,180),rand(100,180),rand(100,180)); + $points=array(); + for($j=1;$j<rand(5,10);$j++) + { + $points[]=rand(2*(20*($i+1)),2*(50*($i+1))); + $points[]=rand(30,$height+30); + } + imagesetthickness($image,rand(2,6)); + imagepolygon($image,$points,intval(sizeof($points)/2),$color); + imagecolordeallocate($image,$color); + } +} + +function morphImage($image,$width,$height) +{ + $tempImage=imagecreatetruecolor($width,$height); + $chunk=rand(1,5); + for($x=$y=0;$x<$width;$x+=$chunk) + { + $chunk=rand(1,5); + $y+=rand(-1,1); + if($y>=$height) $y=$height-5; + if($y<0) $y=5; + imagecopy($tempImage,$image,$x,0,$x,$y,$chunk,$height); + } + for($x=$y=0;$y<$height;$y+=$chunk) + { + $chunk=rand(1,5); + $x+=rand(-1,1); + if($x>=$width) $x=$width-5; + if($x<0) $x=5; + imagecopy($image,$tempImage,$x,$y,0,$y,$width,$chunk); + } +} + diff --git a/lib/prado/framework/Web/UI/WebControls/assets/keyboard.css b/lib/prado/framework/Web/UI/WebControls/assets/keyboard.css new file mode 100644 index 0000000..ad88d76 --- /dev/null +++ b/lib/prado/framework/Web/UI/WebControls/assets/keyboard.css @@ -0,0 +1,80 @@ +div.Keyboard +{ + -moz-background-clip: -moz-initial; + -moz-background-origin: -moz-initial; + -moz-background-inline-policy: -moz-initial; + -moz-user-select: none; + + display: block; + position: absolute; + border: 1px solid #698977; + background-color: #DDDDDD; + z-index: 1000 !important; + visibility: hidden; + padding: 4px 4px 4px 4px; + text-align: center; +} + +div.Keyboard div.Line +{ + width: 267px; + height: 18px; +} + +div.Keyboard div.Key +{ + width: 17px; + height: 17px; + margin: 1px 0px 0px 1px; + overflow: hidden; + float: left; + display: inline; +} + +div.Keyboard div.Key div.Key1, +div.Keyboard div.Key div.Key2 +{ + overflow: hidden; + border: 1px solid #A5A5A5; + background-color: #F7F7F7; + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 11px; + color: #556C5F; + font-weight: normal; + text-align: center; + line-height: 15px; + vertical-align: middle; + display: block; + cursor: pointer; +} + +div.Keyboard div.Key div.Hover +{ + color: #E02C03; + border-color: #E0431D; +} + +div.Keyboard div.Key div.Active +{ + color: #FFFFFF; + background-color: #E0431D; +} + +div.Keyboard.Shift div.Key div.Key1, +div.Keyboard.Caps div.L div.Key1, +div.Keyboard.Off div.Key div.Key2 +{ + display: none; +} + +div.Keyboard.Caps div.L div.Key2 +{ + display: block; +} + +div.Keyboard div.Bksp {width: 31px;} +div.Keyboard div.Exit {width: 33px;} +div.Keyboard div.Caps {width: 33px;} +div.Keyboard div.\\ {width: 24px;} +div.Keyboard div.Del {width: 24px;} +div.Keyboard div.Shift {width: 42px;}
\ No newline at end of file diff --git a/lib/prado/framework/Web/UI/WebControls/assets/tabpanel.css b/lib/prado/framework/Web/UI/WebControls/assets/tabpanel.css new file mode 100644 index 0000000..43a42c6 --- /dev/null +++ b/lib/prado/framework/Web/UI/WebControls/assets/tabpanel.css @@ -0,0 +1,71 @@ +.tab-panel
+{
+ position: relative;
+ float: left;
+ width: 100%;
+}
+
+.tab-normal
+{
+ font-family: Verdana, Helvetica, Arial;
+ font-size: 12px;
+ display: inline;
+ margin: 1px -5px 1px 5px;
+ float: left;
+ padding: 3px 6px 4px 6px;
+ background: rgb(234,242,255);
+ border: 1px solid;
+ border-color: rgb(120,172,255);
+ z-index: 1;
+ position: relative;
+ top: 0;
+}
+
+.tab-active
+{
+ position: relative;
+ display: inline;
+ float: left;
+
+ font-family: Verdana, Helvetica, Arial;
+ font-size: 12px;
+
+ border: 1px solid rgb(120,172,255);
+ border-bottom: 0;
+ z-index: 3;
+ padding: 2px 6px 8px 6px;
+ margin: 1px -6px -2px 0px;
+ top: -2px;
+ background: white;
+}
+
+.tab-view
+{
+ clear: both;
+ border: 1px solid rgb(120,172,255);
+ z-index: 2;
+ position: relative;
+ top: -2px;
+ padding: 10px;
+}
+
+.tab-active a
+{
+ color: black;
+ text-decoration: none;
+ font-weight: bold;
+}
+
+.tab-normal a
+{
+ color: gray;
+ text-decoration: none;
+ font-weight: bold;
+}
+
+.tab-normal a:hover, .tab-normal a:focus
+{
+ color: rgb(120,172,255);
+ text-decoration: none;
+ font-weight: bold;
+}
\ No newline at end of file diff --git a/lib/prado/framework/Web/UI/WebControls/assets/verase.ttf b/lib/prado/framework/Web/UI/WebControls/assets/verase.ttf Binary files differnew file mode 100644 index 0000000..4b4ecc6 --- /dev/null +++ b/lib/prado/framework/Web/UI/WebControls/assets/verase.ttf |