Example #1
0
		  ?>
		  </td>
	      <td class="zinfo"><?php
		   $__text = CFunctions::cut_string($user['prenom'], $max_input_text+3);
	      echo $__text;
		  if($user['prenom'] != $__text) {
		  ?>
	        <div class="bulle">
			        <?php echo $user['prenom']; ?>
			</div>
	      <?php
			}
		  ?>
		  </td>
	      <td class="zinfo"><?php
		  $__text = CFunctions::cut_string($user['societe'], $max_input_text+3);
	      echo $__text;
		  if($user['societe'] != $__text) {
		  ?>
	        <div class="bulle">
			        <?php echo $user['societe']; ?>
			</div>
	      <?php
		  }
		  ?>
		  </td>
	      <td align="center"><?php echo $user['pays'] ?></td>
	      <td align="center"><?php echo date("d-m-20y", strtotime($user['date']));?></td>
	      <td align="center"><?php echo CHtmlUser::get_etat_contact($user['id'], $user['etat_contact'], 0) ?></td>
	      <td align="center">R<?php echo $user['relance']; ?></td>
	      <td style="text-align: center;"><?php echo $opp_num[$user['idopportunite']]; ?></td>
						  echo utf8_encode($__text);
						  if($user['resp_ent'] != $__text) {
						  ?>
						  <div class="bulle">
							  <?php echo utf8_encode($user['resp_ent']); ?>
						  </div>
              	  <?php 
              }
              ?>			  
			  </td>
			  
              <td class="zinfo"> 
			  
			  <?php
			  //--------------- Owen 01/2011 Limitation de caractère
              $__text = CFunctions::cut_string($user['nom_ent'], $max_input_text+3);
              echo utf8_encode($__text);
              if($user['nom_ent'] != $__text) {
              	?>
              	 <div class="bulle">
			         <?php echo utf8_encode($user['nom_ent']); ?>
			     </div>
              	<?php 
              }
              ?>
			  </td>
			  <td class="zinfo"> 
			  <?php 
				echo $user['id_sec'];
				$sql_nomSec='select nom_sec FROM secteur WHERE id_sec='.$user['id_sec'];
				$nomSec=CBdd::select_one($sql_nomSec, 'nom_sec');
$zSqlPj .= " WHERE " . $zTableUtilite . ".id = " . $iOppId ;

$toPieces = CBdd::select_row($zSqlPj) ;

$zHtml = '' ;

if ($toTextes)
{
    $zTxtCut = CFunctions::cut_string($toTextes['nom'], 15) ;
    $zHtml .= '<p>' ;
    $zHtml .= '    <label class="info">' . $zTxtCut ;
    $zHtml .= ($zTxtCut != $toTextes['nom']) ? '    <span class="bulle">' . $toTextes['nom'] . '</span>' : '' ;
    $zHtml .= '    </label>' ;
    $zHtml .= '    <input type="radio" value="1" class="radioText" name="radioText" /> Oui' ;
    $zHtml .= '    <input type="radio" value="0" class="radioText" name="radioText" checked="checked" /> Non' ;
    $zHtml .= '</p>' ;
}

if ($toPieces)
{
    $zPieceCut = CFunctions::cut_string(str_replace('../../userfiles/pieces_jointes/', '', $toPieces['piece']), 15) ;
    $zHtml .= '<p>' ;
    $zHtml .= '    <label class="info">' . $zPieceCut ;
    $zHtml .= ($zPieceCut != $toPieces['piece']) ? '    <span class="bulle">' . $toPieces['piece'] . '</span>' : '' ;
    $zHtml .= '    </label>' ;
    $zHtml .= '    <input type="radio" value="1" class="radioPiece" name="radioPiece" /> Oui' ;
    $zHtml .= '    <input type="radio" value="0" class="radioPiece" name="radioPiece" checked="checked" /> Non' ;
    $zHtml .= '</p>' ;
}
    
echo $zHtml ;