697. File Comparison Report

Produced on Mon May 12 13:06:52 2008 UTC. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

697.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5\templates\base\scripts BxBaseVotingView.php Thu Sep 20 09:00:18 2007 UTC
2 Dolphin-v.6.1.0\templates\base\scripts BxBaseVotingView.php Wed Apr 9 17:45:00 2008 UTC

697.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 4 142
Changed 1 2
Inserted 2 4
Removed 0 0

697.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

697.4 Active regular expressions

No regular expressions were active.

697.5 Comparison detail

1   <?   1   <?
2     2  
3   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolVo ting.php'  );   3   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolVo ting.php'  );
4     4  
5   class BxBa seVotingVi ew extends  BxDolVoti ng   5   class BxBa seVotingVi ew extends  BxDolVoti ng
6   {   6   {
7       var $_ iSizeStarB ig = 32;   7       var $_ iSizeStarB ig = 32;
8       var $_ iSizeStarS mall = 16;   8       var $_ iSizeStarS mall = 16;
9     9  
10       functi on BxBaseV otingView(  $sSystem,  $iId, $iI nit = 1 )   10       functi on BxBaseV otingView(  $sSystem,  $iId, $iI nit = 1 )
11       {   11       {
12           Bx DolVoting: :BxDolVoti ng( $sSyst em, $iId,  $iInit );   12           Bx DolVoting: :BxDolVoti ng( $sSyst em, $iId,  $iInit );
13       }   13       }
14          14       
15       functi on getSmal lVoting ($ iCanRate =  1)   15       functi on getSmal lVoting ($ iCanRate =  1)
16       {   16       {
    17           gl obal $logg ed;
    18           $i CanRate =  ($logged[' member'])  ? $iCanRat e : 0;
17           if  (!$this-> checkActio n()) $iCan Rate = 0;   19           if  (!$this-> checkActio n()) $iCan Rate = 0;
18           re turn $this ->getVotin g($iCanRat e, $this-> _iSizeStar Small, 'sm all');   20           re turn $this ->getVotin g($iCanRat e, $this-> _iSizeStar Small, 'sm all');
19       }   21       }
20     22  
21       functi on getBigV oting ($iC anRate = 1 )   23       functi on getBigV oting ($iC anRate = 1 )
22       {   24       {
    25           gl obal $logg ed;
    26           $i CanRate =  ($logged[' member'])  ? $iCanRat e : 0;
23           if  (!$this-> checkActio n()) $iCan Rate = 0;   27           if  (!$this-> checkActio n()) $iCan Rate = 0;
24           re turn $this ->getVotin g($iCanRat e, $this-> _iSizeStar Big, 'big' );   28           re turn $this ->getVotin g($iCanRat e, $this-> _iSizeStar Big, 'big' );
25       }   29       }
26     30  
27       functi on getVoti ng($iCanRa te, $iSize , $sName)   31       functi on getVoti ng($iCanRa te, $iSize , $sName)
28       {   32       {
29           gl obal $site ;   33           gl obal $site ;
30     34  
31           $i Max = $thi s->getMaxV ote();   35           $i Max = $thi s->getMaxV ote();
32           $i Width = $i Size*$iMax ;   36           $i Width = $i Size*$iMax ;
33           $s SystemName  = $this-> getSystemN ame();   37           $s SystemName  = $this-> getSystemN ame();
34           $i ObjId = $t his->getId ();   38           $i ObjId = $t his->getId ();
35           $s DivId = $t his->getSy stemName()  . $sName;   39           $s DivId = $t his->getSy stemName()  . $sName;
36     40  
37           $s Ret = '<di v class="v otes_'.$sN ame.'" id= "' . $sDiv Id . '">';   41           $s Ret = '<di v class="v otes_'.$sN ame.'" id= "' . $sDiv Id . '">';
38              42           
39           $s Ret .= <<< EOF   43           $s Ret .= <<< EOF
40   <script la nguage="ja vascript">   44   <script la nguage="ja vascript">
41       var oV oting{$sDi vId} = new  BxDolVoti ng('{$site ['url']}',  '{$sSyste mName}', ' {$iObjId}' , '{$sDivI d}', '{$sD ivId}Slide r', {$iSiz e}, {$iMax });   45       var oV oting{$sDi vId} = new  BxDolVoti ng('{$site ['url']}',  '{$sSyste mName}', ' {$iObjId}' , '{$sDivI d}', '{$sD ivId}Slide r', {$iSiz e}, {$iMax });
42   </script>   46   </script>
43   EOF;   47   EOF;
44     48  
45           $s Ret .= '<d iv class=" votes_gray _'.$sName. '" style=" width:'.$i Width.'px; ">';   49           $s Ret .= '<d iv class=" votes_gray _'.$sName. '" style=" width:'.$i Width.'px; ">';
46     50  
47           if  ($iCanRat e)   51           if  ($iCanRat e)
48           {   52           {
49                $sRet .=  '<div cla ss="votes_ buttons">' ;   53                $sRet .=  '<div cla ss="votes_ buttons">' ;
50                for ($i= 1 ; $i<=$i Max ; ++$i )   54                for ($i= 1 ; $i<=$i Max ; ++$i )
51                {   55                {
52                     $sRet   .=   '<a   href="java script:'.$ i.';void(0 );"   onmouseove r="oVoting '.$sDivId. '.over('.$ i.');"   onmouseout ="oVoting' .$sDivId.' .out();"   onclick="o Voting'.$s DivId.'.vo te('.$i.') "><img   class="vot es_button_ '.$sName.' "   src="'.$si te['base'] .'images/v ote_star_n ull.gif"  
/></a>';
  56                     $sRet   .=   '<a   href="java script:'.$ i.';void(0 );"   onmouseove r="oVoting '.$sDivId. '.over('.$ i.');"   onmouseout ="oVoting' .$sDivId.' .out();"   onclick="o Voting'.$s DivId.'.vo te('.$i.') "><img   class="vot es_button_ '.$sName.' "   src="'.$si te['base'] .'images/v ote_star_n ull.gif"   alt=""   /></a>';
53                }   57                }
54                $sRet .=  '</div>';   58                $sRet .=  '</div>';
55           }   59           }
56     60  
57           $s Ret .= '<d iv id="'.$ sDivId.'Sl ider" clas s="votes_a ctive_'.$s Name.'" st yle="width :'.round($ this->getV oteRate()* $iWidth/$i Max).'px;" ></div>';   61           $s Ret .= '<d iv id="'.$ sDivId.'Sl ider" clas s="votes_a ctive_'.$s Name.'" st yle="width :'.round($ this->getV oteRate()* $iWidth/$i Max).'px;" ></div>';
58           $s Ret .= '</ div>';   62           $s Ret .= '</ div>';
59           $s Ret .= '<b >'.$this-> getVoteCou nt(). ' '  . _t('_vot es') . '</ b>';   63           $s Ret .= '<b >'.$this-> getVoteCou nt(). ' '  . _t('_vot es') . '</ b>';
60           $s Ret .= '<d iv class=" clear_both "></div>';   64           $s Ret .= '<d iv class=" clear_both "></div>';
61           $s Ret .= '</ div>';   65           $s Ret .= '</ div>';
62     66  
63           re turn $sRet ;   67           re turn $sRet ;
64       }   68       }
65     69  
66       functi on getExtr aJs ()   70       functi on getExtr aJs ()
67       {   71       {
68           gl obal $site ;   72           gl obal $site ;
69           re turn '<scr ipt src="' .$site['ur l'].'inc/j s/classes/ BxDolVotin g.js" type ="text/jav ascript" l anguage="j avascript" ></script> ';   73           re turn '<scr ipt src="' .$site['ur l'].'inc/j s/classes/ BxDolVotin g.js" type ="text/jav ascript" l anguage="j avascript" ></script> ';
70       }   74       }
71   }   75   }
72   ?>   76   ?>