21
neda_barna
Re: use getCountryList function in register.php
  • 2007/10/30 7:36

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


i want use xoopsformselect
that it is in the class/xoopsform/formselect country
in register.php



22
neda_barna
use getCountryList function in register.php
  • 2007/10/30 6:31

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


hi
the getCountryList is in class/xoopslist
now i want use this function in the register.php
i write this code in registerform
$reg_form->addElement(new XoopsFormSelectCountry(_US_COUNTRY"country"$country));

but i dont know how can input in database
when pepole select one of them how can input name of country in the database
please help
what code can write in register.php



23
neda_barna
Re: login with email
  • 2007/10/22 11:02

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


i found this address
http://xoops.peak.ne.jp/md/mydownloads/singlefile.php?cid=2&lid=31
but now i dont know how can use this in my module
please help me



24
neda_barna
login with email
  • 2007/10/22 10:42

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


hi
i want write code that login with email please help to write this code in my module



25
neda_barna
Re: make user and password
  • 2007/10/22 6:26

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


i want like this
https://xoops.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=29338&forum=14
but i cant open this file that said
http://xoops.biz/dist/my_autologin_for_xoops-2.0.9.x.zip
please tell me what must i do



26
neda_barna
Re: make user and pass word
  • 2007/10/10 5:27

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


what side of this site write this code that i want



27
neda_barna
make user and pass word
  • 2007/10/9 6:33

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


i have submit form that i want have a one text box for username
one for password
and login button
i want all of user becom with email that means when thsy register when give thier email
this email becom their username
please tell this code thank



28
neda_barna
Re: please help it is immediate
  • 2007/10/9 4:40

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


no one cant help me



29
neda_barna
please help it is immediate
  • 2007/10/8 6:38

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


hi all
i want make some group with their permission
but i can make that in system module and get permission in my moudle that i make(for exaple referee module)
but i want make that when XOOPS become install
when the webmaster and anonymous users and Registered Users become make
for example when XOOPS become install i want make this
group name:referee or codirector
permission:referee
please help me what must i do
where section of install folder i must write this
and what table i want
thx so much



30
neda_barna
working with combo box and switch
  • 2007/10/6 5:17

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


hi all
i have this code
that have one combobox and switch and case
but when i chose a combobox this working and case main working
but case update dont work please view my code and tell me why the case update dont work
$combo '<form action="extended_expire.php" method="post">
           <table class="eleHead"><tr>
          <td nowrap><select name="referee">
           <option selected>_________ </option>
           <option  value="A" >'
._REF_LIST_ALLA.'</option>
           <option  value="B" >'
._REF_LIST_KOL.'</option>
           <option value="C">'
._REF_LIST_REF.'</option>
             </select></td>'
;
 
$combo .='<td nowrap> <input type="submit" class="formButton" name="go" value="'._REF_BUTTON_GO.'" /></td>
          </tr></table>
          </form>'
;

echo 
$combo;

elseif ($_POST['referee']=='C')
{







switch ( 
$case ) {

case 
'main':
    
echo 
$w;
/////////////kodom ghesmat ra dashte bashim masalan ghesmate reeferee
     
$query ="status='REFEREE'";

    if ( 
is_http_var'search' ) ) {

        
$tid is_http_var'tid' ) ? get_http_var'tid' ) : NULL;

        
$sid is_http_var'sid' ) ? get_http_var'sid' ) : NULL;

        
$key is_http_var'key' ) ? get_http_var'key' ) : NULL;

        

        

        }

        

    

    

    
$caption = !empty( $caption ) ? $caption _REF_LIST_REF;

    

    
$where_r trim$query ) ? preg_split "/[,]+/"trim$query ) ) : NULL// query string must be comma seperated 

    //echo '<pre>'; print_r( $where_r ); echo '</pre>'; // !!!!!!!!!! DEBUG !!!!!!!!!!!!!

    

    
$order is_http_var'order' ) ? get_http_var'order' ) : "date";

    
$order_pre is_http_var'order_pre' ) ? get_http_var'order_pre' ) : "";

    
$dir = ( $isDir OR $isSec ) ? 'DESC' 'ASC';

    
$order makeOrder $order$order_pre$dir );

    
$order is_http_var'order_force' ) ? get_http_var'order_force' ) : $order;

    
$start is_http_var'start' ) ? get_http_var'start' ) : 0;

    
$start = ( $start ) ? $start;

    
$limit $xoopsModuleConfig'list_rows' ];



    
$op $op $op 'AND';

    

if ( 
is_array$categoryArr ) and count $categoryArr ) ) {

        foreach ( 
$categoryArr as $cat )

            
$categoryCriteriaArr[] = "category = '$cat'";

        
$categoryCriteria ' ( '.implode(' OR ',$categoryCriteriaArr).' ) ';



        if ( 
count$where_r ) )

            
$whereStr ' ( '.implode' '.$op.' '$where_r ).' ) ';

            
$where_r = array( $whereStr$categoryCriteria );

            
$op 'AND';

            

        unset( 
$whereStr );

        unset( 
$categoryCriteriaArr );

        unset( 
$categoryCriteria );

}



    
$papers RefereePaper::getAll$where_rTRUE$order$limit$start$op );

    
$total RefereePaper::getAll$where_r'COUNT'$order00$op );

        
$next_start $start $limit;

        
$back_start $start $limit;

    
$pages ceil$total $limit );

    
$page ceil( ( $start ) / $limit );

    

    
$categoriesArr JournalUser::getCategories();

    

    

        

    
$caption '<table>

            <tr class="head"><td>'
.$caption.'</td><td>&nbsp;</td><td>'._REF_STAT_COUNT.' '.$total.'</td></tr>

        </table>'
;

    

    

    

    
$arrows NULL;

    if ( 
$total $limit ) {

        
$arrows.= '<center class="arrows"><table dir="ltr"><tr><td width="20%"></td><td>';

                if ( 
$start ) {

                                    
$arrows .= '<form action="extended_expire.php">

        <input type="hidden" name="case" value="'
.$case.'" />
                <input type="hidden" name="w" value="'
.$w.'" />

        <input type="hidden" name="query" value="'
.$query.'" />

        <input type="hidden" name="order_force" value="'
.$order.'" />

        <input type="hidden" name="start" value="'
.$back_start.'" />

        <input type="hidden" name="op" value="'
.$op.'" />

        <input type="hidden" name="category" value="'
.htmlspecialchars  $category ).'" />

        <input type="hidden" name="filter" value="TRUE" />

        <input type="hidden" name="filter_var" value="'
.$filter_var.'" />

        <input type="hidden" name="filter_op" value="'
.$filter_op.'" />

        <input type="hidden" name="filter_value" value="'
.$filter_value.'" />

        <button type="submit"><img src="'
.REFER_URL.'/images/back_on.png"></button>

        </form>'
;

                       

                } else {

                        
$arrows.= '<img src="'.REFER_URL.'/images/back_off.png">';

                }

                
$arrows.= '</td><td width="50%" nowrap><center>'

            
._REF_STAT_PAGE.' '.$page.' '._REF_STAT_OF.' '.$pages

            
.'<br /> <table><tr><td width="50%"></td>';

        for( 
$myCounter max(1$page 5); $myCounter <= min($pages$page 5); $myCounter++ )

        {

            
$arrows .= '<td>';

            if( 
$page == $myCounter )

                
$arrows .= '<button><b> '.$myCounter.' </b></button>';

            else

                
$arrows .= '<form action="extended_expire.php">

                <input type="hidden" name="case" value="'
.$case.'" />
 <input type="hidden" name="w" value="'
.$w.'" />

                <input type="hidden" name="query" value="'
.$query.'" />

                <input type="hidden" name="order_force" value="'
.$order.'" />

                <input type="hidden" name="start" value="'
.(($myCounter 1)*$limit).'" />

                <input type="hidden" name="op" value="'
.$op.'" />

                <input type="hidden" name="category" value="'
.htmlspecialchars  $category ).'" />

                <input type="hidden" name="filter" value="TRUE" />

                <input type="hidden" name="filter_var" value="'
.$filter_var.'" />

                <input type="hidden" name="filter_op" value="'
.$filter_op.'" />

                <input type="hidden" name="filter_value" value="'
.$filter_value.'" />

                <input type="submit" name="submit" value="'
.$myCounter.'" />

                </form>'
;

            
$arrows .= '</td>';

        }

        
$arrows .= '<td width="50%"></td></tr></table></center></td><td>';

                if ( 
$total $next_start ) {

                                
$arrows .= '<form action="extended_expire.php">

            <input type="hidden" name="case" value="'
.$case.'" />
<input type="hidden" name="w" value="'
.$w.'" />

                   <input type="hidden" name="query" value="'
.$query.'" />

               <input type="hidden" name="order_force" value="'
.$order.'" />

               <input type="hidden" name="start" value="'
.$next_start.'" />

               <input type="hidden" name="op" value="'
.$op.'" />

               <input type="hidden" name="category" value="'
.htmlspecialchars  $category ).'" />

            <input type="hidden" name="filter" value="TRUE" />

               <input type="hidden" name="filter_var" value="'
.$filter_var.'" />

            <input type="hidden" name="filter_op" value="'
.$filter_op.'" />

            <input type="hidden" name="filter_value" value="'
.$filter_value.'" />

            <button type="submit"><img src="'
.REFER_URL.'/images/next_on.png"></button>

                                                </form>'
;

                                                     

                } else {

                        
$arrows.= '<img src="'.REFER_URL.'/images/next_off.png">';

                }

                
$arrows.= '</td><td width="20%"></td></tr></table></center>';

    }

        

    
$list '<form action="extended_expire.php" method="post">

    <table><tr><td></td>

    <td class="head"><a href="extended_expire.php?case='
.$case.'&order=sid&order_pre='.$order.'&start='.$start.'

        &query_pre='
.$query.'&op='.$op.'">'._REF_ID.'</a></td>

    <td class="head"><a href="extended_expire.php?case='
.$case.'&order=title&order_pre='.$order.'&start='.$start.'

            &query_pre='
.$query.'&op='.$op.'">'._REF_TITLE.'</a></td>

    <td class="head"><a href="extended_expire.php?case='
.$case.'&order=author&order_pre='.$order.'&start='.$start.'

            &query_pre='
.$query.'&op='.$op.'">'._REF_AUTHORS.'</a></td>

    <td class="head"><a href="extended_expire.php?case='
.$case.'&order=date&order_pre='.$order.'&start='.$start.'

            &query_pre='
.$query.'&op='.$op.'">'._REF_DATE.'</a></td>

    <td class="head"><a href="extended_expire.php?case='
.$case.'&order=status&order_pre='.$order.'&start='.$start.'

            &query_pre='
.$query.'&op='.$op.'">'._REF_STATUS.'</a></td>

        <td class="head" nowrap>'
._REF_RECORD_STAT.'<br />

                    <div style="font-size: 8px;">'

                    
.' <font color="#1212ff">'._REF_RECORD_STAT_INREV.'</font> |

                   <font color="#12ff12">    '
._REF_RECORD_STAT_ACCPT.'</font> |

                  <font color="#ff1212"> '
._REF_RECORD_STAT_REJ.'</font> |

                 <font color="#ffff00"> '    
._REF_RECORD_STAT_EXPD.'</font> |

                <font color="#000000"> '
._REF_RECORD_STAT_TOT.' </font>

                </div>

    </td>

    </tr>'
;

    

    
$class 'even';

    

    foreach ( 
$papers as $paper ){

        

        
$sid $paper->getVar'sid' );

        
$title substr_words $myts->makeTboxData4Show$paper->getVar'title' ) ), );

            
$authors substr_words $paper->getAuthors() );

            
$date formatTimestamp $paper->getVar'date' ), 's' );

            
$status strtoupper$paper->getVar'status' ) );



        
$class = ($class == 'odd') ? 'even' 'odd';

        

        
$STATUS constant'_REF_STATUS_'.strtoupper$status ) );

        

        

        

    

        

        
$list.= '<tr>

        <td class="head"><input type="checkbox" name="check[]" value="'
.$sid.'"</td>

        <td class="'
.$class.'">'.$sid.'</td>

        <td class="'
.$class.'">'.$title.'</td>

        <td class="'
.$class.'">'.$authors.'</td>

        <td class="'
.$class.'" nowrap>'.$date.'</td>

        <td class="'
.$class.'" nowrap>'.$STATUS.'</td>';

        

        
$criteria_r = array();

        
$criteria_r[] = 'sid = '.$sid;

        
$records RefereeRecord::getAll($criteria_rTRUE);

        
$expired 0;

        
$accepted 0;

        
$rejected 0;

        
$inreview 0;

        
$countAll count$records );

        

        
$list .= '<td class="'.$class.'" nowrap >&nbsp;

            <font color="#1212ff">'
.$inreview.'</font>&nbsp;&nbsp;|&nbsp;&nbsp;

            <font color="#12ff12">'
.$accepted.'</font>&nbsp;&nbsp;|&nbsp;&nbsp;

            <font color="#ff1212">'
.$rejected.'</font>&nbsp;&nbsp;|&nbsp;&nbsp;

            <font color="#ffff00">'
.$expired.'</font>&nbsp;&nbsp;|&nbsp;&nbsp;

            <font color="#000000">'
.$countAll.'</font>&nbsp;</td>';


            

        
$list .= '</tr>';


                    

    }
     

    
$list.= '<tr><td>&nbsp;</td></tr><tr><td></td><td class="">
                <input type="hidden" name="order_pre" value="'
.$order.'">

        <input type="hidden" name="case_pre" value="'
.$case.'">

        <input type="hidden" name="case" value="update">
<input type="hidden" name="w" value="'
.$w.'" />
                </td></table>

        <table>

        <td >'
._REF_EXP.':<input type="text" name="key2" value="" size="20" ></td>

        <tr><td><input type="submit" class="formButton" name="update" value="'
._REF_SAVE.'"class="update"></td></tr>

        </td></table></form>'
;

    

    
/*  Generating Output :) */

    

    

    
echo '<br />';

        echo 
$caption;

    echo 
'<br />';

    echo 
$arrows;

    echo 
'<br />';

    echo 
$list;

    echo 
'<br />';

    echo 
$arrows;     


break;

case 
'update':

    

    

    
$check = array ( );

    
$count 0;

        
$case_pre is_http_var'case_pre' ) ? get_http_var'case_pre' ) : 'main';

        
$check     is_http_var'check' ) ? get_http_var'check' ) : array ( );

    

    foreach ( 
$_POST['check'] as $chk1 ) {

echo 
"hello";

$word1=$_POST['key2'];
$word2=$word 86400;
$query2="UPDATE ".$xoopsDB->prefix referee )." SET exp_date = exp_date + '$word2' WHERE sid='.$chk1.'  ";
$xoopsDB->query($query2);
$count++;

    }

        

    if ( 
$count ) {

        
redirect_header REFER_URL."/extended_expire.php?case=".$case_pre2$count." "._REF_SAVE1 );

    } else {

        
redirect_header REFER_URL."/extended_expire.php?case=".$case_pre2_REF_SAVE_NOPAPER );

    }



    break;



}

}




TopTop
« 1 2 (3) 4 5 6 7 »



Login

Who's Online

215 user(s) are online (134 user(s) are browsing Support Forums)


Members: 0


Guests: 215


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits