PluginProbe
SEO Redirection Plugin – 301 Redirect Manager / 8.4
SEO Redirection Plugin – 301 Redirect Manager v8.4
9.19 trunk 4.17 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 7.9 8.1 8.2 8.3 8.4 8.5 8.6 8.7 8.8 8.9 9.1 9.10 9.11 9.12 All 39 releases
seo-redirection / common / controls / cf_checkoption.php

cf_checkoption.php in SEO Redirection Plugin – 301 Redirect Manager 8.4, at common/controls/cf_checkoption.php

49 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Author: Fakhri Alsadi
4 Date: 16-7-2010
5 Contact: www.clogica.com info@clogica.com mobile: +972599322252
6 */
7
8 ///@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
9 ///@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
10 //// class checkoption @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
11 /*
12 A simple class to create checkbox options
13
14 ----------------------------------------------------------
15 example:
16 ----------------------------------------------------------
17 $check = new checkoption('redirect_control_panel');
18 $check->check($options['redirect_control_panel'],'1')
19
20 or
21
22 $check = new checkoption('redirect_control_panel',$options['redirect_control_panel'],'1');
23
24 */
25
26
27 if(!class_exists('checkoption')){
28 class checkoption{
29
30 var $name;
31
32
33 function __construct($name,$check=null,$value='1')
34 {
35
36 $this->name=$name;
37 $checked="";
38 if(isset($check) && $check==$value)
39 $checked="checked=checked";
40
41 echo '<input type="checkbox" name="' . esc_attr($name) . '" id="' . esc_attr($name) . '" ' . esc_attr($checked) . ' value="1">';
42
43 }
44
45 }}
46
47
48
49 ?>