
 {dede:config.pagesize value='5' /}
<div class="tgpl_box">
  <div class="tgpl_list">

        <div class="tg_comment"> {dede:datalist}
          <?php
  if($fields['userid']!='') $spaceurl = $cfg_basehost.'/member/index.php?uid='.$fields['userid'];
  else $spaceurl = "#";
  if($fields['username']=='匿名') $spaceurl = "#";
  $fields['bgimg'] = 'cmt-neu.gif';
  $fields['ftypetitle'] = '该用户表示一般';
  if($fields['ftype']=='bad') {
  	$fields['bgimg'] = 'cmt-bad.gif';
  	$fields['ftypetitle'] = '该用户表示难听';
  }
  else if($fields['ftype']=='good') {
  	$fields['bgimg'] = 'cmt-good.gif';
  	$fields['ftypetitle'] = '该用户表示好听';
  }
?>
          <div class="tgbf_box" style="margin-top:5px;">
            
            <table width="95%" border="0" style=" border-bottom:1px dashed #DDDDDD">
              <tr>
                <td colspan="2">&nbsp;<img src="/templets/images/icons_tx.gif" />&nbsp;<font color="#FF0000">{dede:field.username/}</font>在{dede:field.dtime function="MyDate('m-d H:i',@me)" /}时说:</td>
              </tr>
              <tr>
                <td  rowspan="2">&nbsp; <img src="{dede:global.cfg_templeturl/}/images/mood/<?php if($fields['face']>0) echo "ico-mood-{$fields['face']}.gif"; ?>" />&nbsp; {dede:field.msg function="Quote_replace(@me)"/} <img src="{dede:global.cfg_templeturl/}/images/{dede:field.bgimg/}" /></td>

              </tr>
 
            </table>


          </div>
         
          {/dede:datalist}

	<div id="tg_pl_page"> {dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5" /} </div>
          
	
        </div>

        <!-- /dede_comment -->
      </dd>
    </dl>
  </div>
  
  
  <div id="tgpl_send">


        <div class="tg_send_post">
          <input type="hidden" name="action" id="action" value="send" />
          <input type="hidden" name="comtype" id="comtype" value="comments">
          <input type="hidden" name="aid" id="aid" value="<?php echo $aid; ?>" />
          <input type="hidden" name="isconfirm" id="isconfirm" value="yes" />

          <!-- /dcmp-title -->
          <div class="dcmp_stand"> <strong>评价:</strong>
            <input type="radio" name="feedbacktype" checked="1" value="feedback" id="dcmp_stand_neu" style="border:1px solid #DDDDDD;"/>
            <label for="dcmp-stand-neu"><img src="{dede:global.cfg_templeturl/}/images/cmt-neu.gif" />中立</label>
            <input type="radio" name="feedbacktype" value="good" id="dcmp_stand_good" onClick="document.getElementById('dcmp_stand_good').checked=1;" style="border:1px solid #DDDDDD;"/>
            <label for="dcmp-stand-good"><img src="{dede:global.cfg_templeturl/}/images/cmt-good.gif" />好评</label>
            <input type="radio" name="feedbacktype" value="bad" id="dcmp_stand_bad" onClick="document.getElementById('dcmp_stand_bad').checked=1;" style="border:1px solid #DDDDDD;"/>
            <label for="dcmp-stand-bad"><img src="{dede:global.cfg_templeturl/}/images/cmt-bad.gif" />差评</label>
          </div>
          <!-- /dcmp-stand -->
          <div class="dcmp_content">
            <textarea cols="60" name="msg" rows="5" id="comment_text"  onfocus="this.value=''" onKeyDown="if(submitForm())commSubmit()" onKeyUp="alertCharNums(this);"  style="width:95%;height:70px;overflow-x:hidden;overflow-y:hidden; border:1px solid #DDDDDD">请在这里输入您要发表的评论信息</textarea>
            <br>
            <span id="ajaxBackMsg">评论不要超过500个字节</span>
</div>
          <!-- /dcmp-content -->
          <div class="dcmp_mood">
 
<table  border="0"  style="width:95%">
  <tr>
    <td><input type="radio"name='face'id="face6"value='6'checked="1" style="border:1px solid #DDDDDD;"/>
<img src="{dede:global.cfg_templeturl/}/images/mood/ico-mood-6.gif"/>
<input type="radio"name='face'id="face4"value='4'onclick="document.getElementById('face4').checked=1;"style="border:1px solid #DDDDDD;"/>
<img src="{dede:global.cfg_templeturl/}/images/mood/ico-mood-4.gif" />
<input type="radio"name='face'id="face3"value='3'onclick="document.getElementById('face3').checked=1;" style="border:1px solid #DDDDDD;"/>
<img src="{dede:global.cfg_templeturl/}/images/mood/ico-mood-3.gif" />
<input type="radio"name='face'id="face5"value='5'onclick="document.getElementById('face5').checked=1;" style="border:1px solid #DDDDDD;"/>
<img src="{dede:global.cfg_templeturl/}/images/mood/ico-mood-5.gif" />
<input type="radio"name='face'id="face2"value='2'onclick="document.getElementById('face2').checked=1;" style="border:1px solid #DDDDDD;"/>
<img src="{dede:global.cfg_templeturl/}/images/mood/ico-mood-2.gif" />
<input type="radio"name='face'id="face1"value='1'onclick="document.getElementById('face1').checked=1;" style="border:1px solid #DDDDDD;"/>
<img src="{dede:global.cfg_templeturl/}/images/mood/ico-mood-1.gif" />
<input type="radio"name='face'id="face7"value='7'onclick="document.getElementById('face7').checked=1;" style="border:1px solid #DDDDDD;" />
<img src="{dede:global.cfg_templeturl/}/images/mood/ico-mood-7.gif"/></td>
    </tr>

</table>

          </div>
          <!-- /dcmp-mood -->
          <div style="margin-top:5px;">
            <!--未登陆-->
            <div class="dcmp_userinfo"> 用户名：
              <?php if($cfg_ml->M_ID <= 0) { ?>
              <input name="username" type="text" id="username_pl" size="10" style="border:1px solid #DDDDDD;"/>

				  密码：<input name="pwd" type="password" id="pwd" size="10" style="border:1px solid #DDDDDD;"/>
              <?php
                    }else{  echo '<input name="username_tg" type="text" id="username_tg" size="10" style="border:1px solid #DDDDDD;" value="'.$cfg_ml->M_LoginID.'" />&nbsp;'; }
                   ?>
              <input name="notuser" type="checkbox" id="notuser"  value="1" style="border:1px solid #DDDDDD;"/>
              匿名
              <?php if($cfg_feedback_ck=='Y') { ?>
              验证码：
              <input name="validate" type="text" id="validate_tg" size="10" style="height:18px;width:60px;margin-right:6px;border:1px solid #ECEDED; height:14px;" class="input1" />
              <img src='{dede:global.cfg_cmsurl/}/include/vdimgck.php' width='60' height='24' />
              <?php } ?>
			  <input type="submit"  value="发表评论"  onClick="commSubmit();" style="font-size:12px; border-top:1px solid #DDDDDD;border-left:1px solid #DDDDDD;border-right:1px solid #DDDDDD;border-bottom:1px solid #DDDDDD;padding-top:5px; background:#FFFFFF"/>
            </div>
            <!-- /dcmp-submit -->
          </div>
          <!-- /dcmp-post -->
        </div>
        <!-- /dede_comment_post -->
      </dd>
    </dl>
  </div>
</div>
